ProtoFlux:Trajectory Position: Difference between revisions

From Resonite Wiki
Cleaned up page.
Fixed wrong output type in node visualization
 
Line 11: Line 11:
|Outputs=
|Outputs=
[
[
{"Name":"*", "Type":"float"}
{"Name":"*", "Type":"float3"}
]
]
}}
}}

Latest revision as of 14:55, 15 October 2024

Trajectory Position
Initial Velocity
*
Gravity
Drag
Time
Physics

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.

Inputs

Initial Velocity (float3)

The initial velocity (speed and direction).

Gravity (float3)

The direction and strength of gravity.

Drag (float)

The resistance in movement.

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.

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