Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Contact Interface Reference

Output structure for reporting collisions. More...

Public Member Functions

proto external float GetRelativeNormalVelocityBefore ()
 Relative speed of objects before collision (along the collision normal)
 
proto external float GetRelativeNormalVelocityAfter ()
 Relative speed of objects after collision (along the collision normal)
 

Public Attributes

Physics Physics1
 
Physics Physics2
 
SurfaceProperties Material1
 Surface properties of Object1.
 
SurfaceProperties Material2
 Surface properties of Object2.
 
float Impulse
 Impulse applied to resolve the collision.
 
int ShapeIndex1 int ShapeIndex2 vector Normal
 Index of collider on Object1.
 
vector Position
 Position of the contact point (world space)
 
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)
 

Detailed Description

Output structure for reporting collisions.

Member Function Documentation

◆ GetRelativeNormalVelocityAfter()

proto external float Contact.GetRelativeNormalVelocityAfter ( )

Relative speed of objects after collision (along the collision normal)

◆ GetRelativeNormalVelocityBefore()

proto external float Contact.GetRelativeNormalVelocityBefore ( )

Relative speed of objects before collision (along the collision normal)

Member Data Documentation

◆ Impulse

float Contact.Impulse

Impulse applied to resolve the collision.

◆ Material1

SurfaceProperties Contact.Material1

Surface properties of Object1.

◆ Material2

SurfaceProperties Contact.Material2

Surface properties of Object2.

◆ Normal

int ShapeIndex1 int ShapeIndex2 vector Contact.Normal

Index of collider on Object1.

Index of collider on Object2 Collision axis at the contact point

◆ Physics1

Physics Contact.Physics1

◆ Physics2

Physics Contact.Physics2

◆ Position

vector Contact.Position

Position of the contact point (world space)

◆ VelocityAfter1

vector Contact.VelocityAfter1

Velocity of Object1 after collision (world space)

◆ VelocityAfter2

vector Contact.VelocityAfter2

Velocity of Object2 after collision (world space)

◆ VelocityBefore1

vector Contact.VelocityBefore1

Velocity of Object1 before collision (world space)

◆ VelocityBefore2

vector Contact.VelocityBefore2

Velocity of Object2 before collision (world space)


The documentation for this interface was generated from the following file: