CURVEANGLE

This command will return an auto-interpolated angle based on a given speed.

  Syntax
Return Float=CURVEANGLE(Destination Value, Current Value, Speed Value)
  Parameters
Destination Value
Float
This value is a float number such as 0.5
Current Value
Float
This value is a float number such as 0.5
Speed Value
Float
Specify the speed value between 0 and 100.

  Returns

This value is a float number such as 0.5

  Description

This command will gradually move a number from its current value to a destination value at a certain speed. This command can be used to create the technique of a camera swinging into position from another location by curving the value of the camera angles. The parameters should be specified using real numbers.

  Example Code
MAKE OBJECT CUBE 1,100
DO
YROTATE OBJECT 1,CURVEANGLE(OBJECT ANGLE Y(1),90,200.0)
LOOP
  See also

CORE Commands Menu
Index