Record TPhysicsCollisionDetails

Hierarchy
Properties

Unit

Declaration

type TPhysicsCollisionDetails = record

Description

Information send along with TCollisionEvent event, like TCastleRigidBody.OnCollisionEnter, TCastleRigidBody.OnCollisionExit.

Overview

Fields

Public Transforms: array [0..1] of TCastleTransform;

Methods

Public function Sender: TCastleTransform;
Public function OtherTransform: TCastleTransform;

Description

Fields

Public Transforms: array [0..1] of TCastleTransform;
 

Methods

Public function Sender: TCastleTransform;

Object that receives the OnCollisionXxx event.

Public function OtherTransform: TCastleTransform;

The object object (not the one that receives the OnCollisionXxx event) to which the event is related.

  • In case of OnCollisionEnter, this is the object that we collided with.

  • In case of OnCollisionStay, this is the object that we are currently colliding with.

  • In case of OnCollisionExit, this is the object that we stopped colliding with.


Generated by PasDoc 0.16.0.