Contents

module::addVelocity

Adds a velocity delta to the element’s current velocity.

Declaration

void module::addVelocity(float3 velocity)

Parameters

  • velocity:

    The velocity vector to add to the current velocity

Discussion

Use this function to incrementally adjust an element’s velocity by adding a velocity vector to its existing value.