Click or drag to resize

TimeOfImpactCalculateTimeOfImpact Method

Compute the upper bound on time before two shapes penetrate. Time is represented as a fraction between [0,tMax]. This uses a swept separating axis and may miss some intermediate, non-tunneling collision. If you change the time interval, you should call this function again. Note: use Distance() to compute the contact point and normal at the time of impact.

Namespace:  Internal.tainicom.Aether.Physics2D.Collision
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void CalculateTimeOfImpact(
	out TOIOutput output,
	ref TOIInput input
)

Parameters

output
Type: Internal.tainicom.Aether.Physics2D.CollisionTOIOutput
The output.
input
Type: Internal.tainicom.Aether.Physics2D.CollisionTOIInput
The input.
See Also