|
Enfusion Script API
|
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) | |
Output structure for reporting collisions.
| proto external float Contact.GetRelativeNormalVelocityAfter | ( | ) |
Relative speed of objects after collision (along the collision normal)
| proto external float Contact.GetRelativeNormalVelocityBefore | ( | ) |
Relative speed of objects before collision (along the collision normal)
| float Contact.Impulse |
Impulse applied to resolve the collision.
| SurfaceProperties Contact.Material1 |
Surface properties of Object1.
| SurfaceProperties Contact.Material2 |
Surface properties of Object2.
Index of collider on Object1.
Index of collider on Object2 Collision axis at the contact point
| Physics Contact.Physics1 |
| Physics Contact.Physics2 |
| vector Contact.Position |
Position of the contact point (world space)
| vector Contact.VelocityAfter1 |
Velocity of Object1 after collision (world space)
| vector Contact.VelocityAfter2 |
Velocity of Object2 after collision (world space)
| vector Contact.VelocityBefore1 |
Velocity of Object1 before collision (world space)
| vector Contact.VelocityBefore2 |
Velocity of Object2 before collision (world space)