Table of Contents

Physics

(NOTE) Information about one point of contact in a collision. This is useful for evaluating info about the collision after it happened such as where the objects hit. WARNING: Do not hold onto this after an event is sent out.

Methods Properties Base Classes Derived Classes
Constructor ComplexImpulse
FrictionImpulse
LocalPoint
NormalImpulse
OtherLocalPoint
Penetration
RelativeVelocity
WorldNormalTowardsOther
WorldPoint

Properties


ComplexImpulse : real3

read-only

The total impulse this object applied (only for more complicated logic). The impulse is a Vector3 of the values (normal, friction1, friction2).

var ComplexImpulse : Real3

FrictionImpulse : real

read-only

The total friction impulse that this object applied.

var FrictionImpulse : Real

LocalPoint : real3

read-only

The point in local space of myself in this collision.

var LocalPoint : Real3

NormalImpulse : real

read-only

The total impulse that this object applied in the direction of the normal.

var NormalImpulse : Real

OtherLocalPoint : real3

read-only

The point in local space of the other object in this collision.

var OtherLocalPoint : Real3

Penetration : real

read-only

The penetration of this contact point in the direction of the normal. Note: penetration is always positive and is not flipped for object A or object B.

var Penetration : Real

RelativeVelocity : real

read-only

The relative velocity of this point in the direction of the normal. The relative point velocity is defined as Dot(p1 - p0, n) where p1 and p0 are the velocities of the contact points in the collision of myself and the other object respectively. This value can be used to see how fast the objects are now separating. Also, in pre-collision this value can be used to approximate the impulse of the collision since the impulse values will not have been calculated yet in pre-collision.

var RelativeVelocity : Real

WorldNormalTowardsOther : real3

read-only

The world space normal that points from myself towards the other object.

var WorldNormalTowardsOther : Real3

WorldPoint : real3

read-only

The point in world space of this contact point.

var WorldPoint : Real3

Methods


ContactPoint : Void

constructor

Name Type Description
function ContactPoint()

ContactPoint : Void

constructor

Name Type Description
contactpoint
function ContactPoint( : ContactPoint)