Click or drag to resize

ShapeRayCast Method

Cast a ray against a child shape.

Namespace:  Internal.tainicom.Aether.Physics2D.Collision.Shapes
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public abstract bool RayCast(
	out RayCastOutput output,
	ref RayCastInput input,
	ref Transform transform,
	int childIndex
)

Parameters

output
Type: Internal.tainicom.Aether.Physics2D.CollisionRayCastOutput
The ray-cast results.
input
Type: Internal.tainicom.Aether.Physics2D.CollisionRayCastInput
The ray-cast input parameters.
transform
Type: Internal.tainicom.Aether.Physics2D.CommonTransform
The transform to be applied to the shape.
childIndex
Type: SystemInt32
The child shape index.

Return Value

Type: Boolean
True if the ray-cast hits the shape
See Also