Table of Contents

Physics

(NOTE) A result from a cast operation on a PhysicsSpace.

Methods Properties Base Classes Derived Classes
Constructor Collider
GetLocalPosition Distance
Normal
ObjectHit
WorldPosition

Properties


Collider : collider

read-only

The collider hit by the cast.

var Collider : Collider

Distance : real

read-only

The distance from the ray/segment start to the point of intersection. Invalid on a volume cast.

var Distance : Real

Normal : real3

read-only

The normal of the object at the intersection point (world space). Invalid on a volume cast.

var Normal : Real3

ObjectHit : cog

read-only

The cog hit by the cast.

var ObjectHit : Cog

WorldPosition : real3

read-only

Returns the world-space position that the object was hit. Invalid on a volume cast.

var WorldPosition : Real3

Methods


CastResult : Void

constructor

Name Type Description
function CastResult()

CastResult : Void

constructor

Name Type Description
rhs castresult
function CastResult(rhs : CastResult)

GetLocalPosition : real3

Returns the local-space position that the object was hit. The point index is used to get the first or last point of intersection. Invalid on volume casts. |Name|Type|Description| |---|---|---| |pointIndex|integer| |

function GetLocalPosition(pointIndex : Integer) : Real3