Skip to content

Variable: PhysicsState

const PhysicsState: object

Defined in: packages/core/src/physics/physicsBody.ts:11

Motion type for PhysicsBody.

Type Declaration

Dynamic

readonly Dynamic: "DYNAMIC" = 'DYNAMIC'

Bodies which can move and respond to forces, collisions, and gravity.

Kinematic

readonly Kinematic: "KINEMATIC" = 'KINEMATIC'

Kinematic bodies that can move just like dynamic bodies. The difference is that kinematic bodies won't be affected by any other bodies. Kinematic bodies will still push dynamic bodies out of the way but the kinematic body won't be affected by those collisions.

Static

readonly Static: "STATIC" = 'STATIC'

Static bodies are bodies which never move. Use this motion type for your immovable objects like walls and floors. It would still affect other bodies in the engine.