|
CURVEVALUE
This command will return an auto-interpolated value based on a given speed.
Return Float=CURVEVALUE(Destination Value, Current Value, Speed Value)
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.
This value is a float number such as 0.5
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.
MAKE OBJECT CUBE 1,100
DO
POSITION OBJECT 1,CURVEVALUE(OBJECT ANGLE X(1),100,200.0)-50.0,0,0
LOOP
CORE Commands Menu
Index
|