Object TRayCollisionNode
Unit
CastleTransform
Declaration
type TRayCollisionNode = object(TObject)
Description
Information about ray collision with a single 3D object. Everything (Point, RayOrigin, RayDirection) is expressed in the local coordinates of given 3D object (in Item).
Hierarchy
- TObject
- TRayCollisionNode
Overview
Fields
Description
Fields
 |
Point: TVector3; |
Position, in local coordinate system of this 3D object, of the picked 3D point.
If the ray hit empty space (Item field is Nil ), then this is undefined. Note that only TCastleSceneManager.MainScene is informed about pointing device events when the ray hit empty space, so this is an unusual case.
|
 |
Triangle: PTriangle; |
Triangle that was hit. This triangle is always a part of Item.
If the ray hit empty space (Item field is Nil ), then this is Nil . Note that only TCastleSceneManager.MainScene is informed about pointing device events when the ray hit empty space, so this is an unusual case.
May also be Nil if RayCollision implementation for the 3D object simply left it Nil . For example,
|
 |
RayOrigin: TVector3; |
Ray used to cause the collision, in local coordinate system of this 3D object.
|
 |
RayDirection: TVector3; |
Ray used to cause the collision, in local coordinate system of this 3D object.
|
Generated by PasDoc 0.15.0.
|