DIFF

class ContactsealedSource

Output structure for reporting collisions.

Constructors 2

private void Contact()
private void ~Contact()

Members 18

Physics Physics1
Physics Physics2

Surface properties of Object1

Surface properties of Object2

float Impulse

Impulse applied to resolve the collision

Referenced by CarScript.OnContact()
int ShapeIndex1

Index of collider on Object1

int ShapeIndex2

Index of collider on Object2

vector Normal

Collision axis at the contact point

vector Position

Position of the contact point (world space)

float PenetrationDepth

Penetration depth on Object1

float RelativeNormalVelocityBefore
float RelativeNormalVelocityAfter
vector RelativeVelocityAfter
vector VelocityBefore1

Velocity of Object1 before collision (world space)

vector VelocityBefore2

Velocity of Object2 before collision (world space)

vector VelocityAfter1

Velocity of Object1 after collision (world space)

vector VelocityAfter2

Velocity of Object2 after collision (world space)

Methods 3

proto native vector GetNormalImpulse()
proto native float GetRelativeVelocityBefore(vector vel)
proto native float GetRelativeVelocityAfter(vector vel)