ProtoFlux:TrajectoryPosition
More actions
The Trajectory Position node takes an initial velocity, force of gravity, drag, and time period, and then outputs the change in position of an object that it would experience. This is very useful for simulating movement.
Its formula is derived from objects moving at low speed / through thick fluids where they experience drag that grows linearly with velocity. (Trajectory of a Projectile with Stokes Drag)
Inputs
Initial Velocity (float3)
The initial velocity (speed and direction).
Gravity (float3)
The direction and strength of gravity.
Drag (float)
The resistance in movement. (positive value, not too close to 0 to avoid inaccurate results)
Time (float)
The change in time between initial and final position.
Outputs
* (float3)
The change in position that would have happened in the time frame. It is computed using the following formula:
Examples
No examples have been given at this time. Examples of potential uses include:
- Instantly calculating the end position of a projectile
- Simulating the movement of a ball