Komodo Engine
C PROJECT_LOGO=
|
Information about a collision event. More...
Public Member Functions | |
Collision (bool isColliding, Vector3 normal, float penetrationDepth) | |
Public Attributes | |
Vector3 | Correction => Normal * PenetrationDepth |
Correction vector for the collision. Adding this to the affected object's position will separate the collision. More... | |
readonly bool | IsColliding |
Whether or not there was a collision. More... | |
readonly Vector3 | Normal |
Collision normal. More... | |
readonly float | PenetrationDepth |
Depth of penetration of the collision. More... | |
Information about a collision event.
Vector3 Komodo.Core.Physics.Collision.Correction => Normal * PenetrationDepth |
Correction vector for the collision. Adding this to the affected object's position will separate the collision.
readonly bool Komodo.Core.Physics.Collision.IsColliding |
Whether or not there was a collision.
readonly float Komodo.Core.Physics.Collision.PenetrationDepth |
Depth of penetration of the collision.