module::setVelocity
Sets the velocity of an element to the specified value.
Declaration
void module::setVelocity(float3 velocity)Parameters
- velocity:
The new velocity vector
Discussion
Use this function to assign a new velocity vector to an element, replacing its current velocity.