new Collision(pPhysicObjectA, pPhysicObjectB)
The collision object represents a collision between two objects.
Parameters:
Name | Type | Description |
---|---|---|
pPhysicObjectA |
FM.PhysicComponent | One of the two game objects' physic component colliding. |
pPhysicObjectB |
FM.PhysicComponent | One of the two game objects' physic component colliding. |
- Source:
Members
-
a :FM.PhysicComponent
-
Physic object A.
Type:
- Source:
-
b :FM.PhysicComponent
-
Physic object B.
Type:
- Source:
-
normal :FM.Vector
-
Normal of the collision, starting at the center of object a and ending in the center of the object b.
Type:
- Source:
-
penetration :float
-
How much the two objects penetrates one another.
Type:
- float
- Source:
Methods
-
destroy()
-
Destroy the manifold and its objects.
- Source: