Options
Menu

Interface ICollisionInfo

CollisionInfo contains details about the collision between two things: BodyA and BodyB. The assumption is that the context that analyzes the collision knows about BodyA but does not necessarily know about BodyB. Hence the data storred in the CollisionInfo is expected to be relative to BodyA (for example the penetration points from A into B). /libraries/shared/src/CollisionInfo.h mapping to JS is done in /libraries/shared/src/RegisteredMetaTypes.cpp see collisionToScriptValue Checked 2014-09-28

Index

Properties

contactPoint

contactPoint: IVec3

world-frame point on BodyA that is deepest into BodyB

penetration

penetration: IVec3

// depth that BodyA penetrates into BodyB

Generated using TypeDoc