planck
Version:
2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development
56 lines (28 loc) • 764 B
Markdown
Class: WorldManifold
This is used to compute the current state of a contact manifold.
# Constructors
## new WorldManifold()
**new WorldManifold**(): [`WorldManifold`](/api/classes/WorldManifold)
### Returns
[`WorldManifold`](/api/classes/WorldManifold)
# Properties
## normal
**normal**: [`Vec2Value`](/api/interfaces/Vec2Value)
World vector pointing from A to B
***
## pointCount
**pointCount**: `number` = `0`
The number of manifold points
***
## points
**points**: [`Vec2Value`](/api/interfaces/Vec2Value)[]
World contact point (point of intersection)
***
## separations
**separations**: `number`[]
A negative value indicates overlap, in meters
# Methods
## recycle()
**recycle**(): `void`
### Returns
`void`