Gorilla.Physics.Q3.Collider
Unit Gorilla.Physics.Q3.Collider.pasClasses
- TQ3Collider = class ( TObject )
- TQ3ColliderDef = class ( TObject )
Records
- record TQ3MassData
- record TQ3ColliderData
Mics. types
- type PQ3MassData = pointer to TQ3MassData;
- type PQ3Collider = pointer to TQ3Collider;
- type TQ3ColliderClass = class of TQ3Collider;
TQ3Collider
Ancestors
Members
Fields
- protected FLocal :
TQ3Transform
- protected FE :
TPoint3D
- protected FNext :
TQ3Collider
- protected FBody :
TObject
- protected FFriction :
Single
- protected FRestitution :
Single
- protected FDensity :
Single
- protected FBroadPhaseIndex :
Integer
- protected FUserDataType :
PTypeInfo
- protected FUserData :
Pointer
- protected FSensor :
Boolean
Methods
- public constructor Create ( ) ;
- public destructor Destroy ( ) ;
- protected function GetUserDataType ( ) : PTypeInfo ;
- protected procedure SetUserDataType ( AValue : PTypeInfo ) ;
- protected procedure SetUserdata ( AData : Pointer ) ;
- protected function GetUserdata ( ) : Pointer ;
- protected procedure SetSensor ( ASensor : Boolean ) ;
- public procedure ApplyDef ( const ADef : TQ3ColliderDef ) ; virtual;
- public procedure ComputeAABB
(
const
TX :
TQ3Transform; var
AABB :
TQ3AABB
)
;
abstract virtual;
Compute the axis aligned bounding box
- public procedure ComputeOBB
(
const
TX :
TQ3Transform; var
OBB :
TQ3OBB
)
;
abstract virtual;
Compute the oriented bounding box
- public procedure ComputeMass
(
var
MD :
TQ3MassData
)
;
virtual;
Compute mass for a visual component.
- public function GetWorldTransform
(
const
TX :
TQ3Transform
)
: TQ3Transform
;
Get the transformation information in world space
- public function TestPoint
(
const
TX :
TQ3Transform; const
P :
TPoint3D
)
: Boolean
;
abstract virtual;
Check if a point inside of the AABB of a collider.
- public function Raycast
(
const
TX :
TQ3Transform; Raycast :
PQ3RaycastData
)
: Boolean
;
abstract virtual;
Checks if a ray is intersecting a collider.
- public procedure SolveCollision
(
const
AManifold :
Pointer; const
AOther :
TQ3Collider
)
;
abstract virtual;
Solves a collision between two colliders.
- public procedure Solve
(
const
AManifold :
Pointer; const
ACollider1 :
TQ3Collider; const
ACollider2 :
TQ3Collider
)
;
class virtual;
Solves a collision between two colliders.
- public procedure Render
(
const
TX :
TQ3Transform; Awake :
Boolean; ARender :
PQ3Render
)
;
abstract virtual;
Render the collider shape.
Properties
TQ3ColliderDef
Ancestors
Members
Fields
- protected FTx :
TQ3Transform
- protected FE :
TPoint3D
- protected FFriction :
Single
- protected FRestitution :
Single
- protected FDensity :
Single
- protected FSensor :
Boolean
Methods
- public constructor Create ( ) ;
- protected function GetTX ( ) : TQ3Transform ;
- protected function GetE ( ) : TPoint3D ;
- protected function GetFriction ( ) : Single ;
- protected procedure SetFriction ( const AValue : Single ) ;
- protected function GetRestitution ( ) : Single ;
- protected procedure SetRestitution ( const AValue : Single ) ;
- protected function GetDensity ( ) : Single ;
- protected procedure SetDensity ( const AValue : Single ) ;
- protected function GetSensor ( ) : Boolean ;
- protected procedure SetSensor ( const AValue : Boolean ) ;
- public procedure _Set ( const TX : TQ3Transform; const AExtents : TPoint3D ) ; virtual;