CollisionInfo
Contains information regarding a collision between two objects.
Properties
BodyA RigidBody A of the two colliding objects
BodyB RigidBody B of the two colliding objects
DynamicsBody In cases where one of the bodies is fixed, this points to the movable RigidBody.
WorldPositionOnA The collision point in world space on body A.
WorldPositionOnB The collision point in world space on body B.
WorldNormalOnA The collision normal in world space on body A.
WorldNormalOnB The collision normal in world space on body B.
Distance The penetration distance of the collision.
AppliedImpulse The applied impulse magnitude resulting from the collision.
AppliedImpulseLateral The applied lateral impulse magnitude resulting from the collision.
IsTrackable Set to true when the collision event is part of a series of collision events that are related.
ShapeInA Set to non-zero when colliding with a multishape node
ShapeInB Set to non-zero when colliding with a multishape node
RelLinearVel Relative linear velocity of the collision point with respect to the velocities of the nodes involved.
RelAngVel Relative angular velocity of the collision point with respect to the velocities of the nodes involved.
Methods
This object has no methods.
Events
This object has no events.