force::add
Adds a constant force vector to the current element.
Declaration
void force::add(float3 force)Parameters
- force:
The 3D force vector to add to the element.
Discussion
This function applies a specified force to the element by adding it to the force accumulator. Multiple forces can be combined by calling this function (or other force functions) multiple times during simulation.