CURVEVALUE

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

  Syntax
Return Float=CURVEVALUE(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 controlling a cars velocity as it breaks to a halt. The parameters should be specified using real numbers.

  Example Code
MAKE OBJECT CUBE 1,100
DO
POSITION OBJECT 1,CURVEVALUE(OBJECT ANGLE X(1),100,200.0)-50.0,0,0
LOOP
  See also

CORE Commands Menu
Index