Class: Manifold

Physics.Manifold

the collision manifold.

new Physics.Manifold (e1, e2)

Name Type Description
e1 Core.Entity one entity that collided.
e2 Core.Entity other entity that collided.

Members

valid Boolean

validity flag

Methods

getNormal ()Utils.Vector2d

gets the normal between the entitie's colliders.
Returns:
Type Description
Utils.Vector2d the normal vector between colliders.

getPenetration ()Utils.Vector2d

gets penetration between the entities' colliders
Returns:
Type Description
Utils.Vector2d the penetration vector between colliders.