Loading...

Logo
DocumentationBehaviorsPhysicsSet Velocity
Physics

Set Velocity

Last updated September 27, 2018

Description

Set or override the current velocity of an object. Units are in meters per second.

Properties

Triggers Immediately

Object ABy default this is the current object selected. You can change this to any other object in your scene.
Velocity XThe amount of velocity to apply to an object along the X axis. This will be how fast your object moves left or right.
Gravity YThe amount of velocity to apply to an object along the Y axis. This will be how fast your object moves up or down.

Outputs

Object ID

This outputs the Object ID.

Examples

To make an object move to the right at a constant speed and never slow down: First turn off physics on the object properties, then apply the Set Velocity behaviour with 5 as the X Velocity.

Get Rotational Velocity

Get Velocity

Set Rotational Velocity

SetVelocityReference.gif