Houdini 20.5 Nodes APEX nodes

dynamicpath::ProjectileLifeFromPlane

Computes the life of a projectile arc based on the start position, end position, and maximum height of the projectile in a given direction.

On this page
Since 20.0

This node takes a gravity vector, along with the start position, end position, and height plane of a projectile’s arc to determine the life of the projectile in seconds.

The life of the projectile is the time in seconds it takes to go from the start position to the end position. The height plane is the plane that the projectile skims before reaching the target.

Inputs

gravity: Vector3

The force of gravity acting on the projectile.

startpos: Vector3

The start position of the projectile.

endpos: Vector3

The end position of the projectile.

planepos: Vector3

The position of the height plane.

planerot: Vector3

The rotation of the height plane represented as a series of Euler angles. A value of (0, 0, 0) indicates that the height plane is parallel to the XZ-plane.

clampheight: Bool

If set to True, the position of the height plane is clamped so that a projectile arc is always possible with the given rotation.

samplerate: Float

The sample rate of the scene. This is only used if roundlife is set to True.

roundlife: Bool

If set to True, the life of the projectile is rounded down to the nearest integer frame according to the samplerate.

Outputs

life: Float

The life of the projectile in seconds.

See also

APEX nodes