Variable: PhysicsState
constPhysicsState:object
Defined in: packages/core/src/physics/physicsBody.ts:11
Motion type for PhysicsBody.
Type Declaration
Dynamic
readonlyDynamic:"DYNAMIC"='DYNAMIC'
Bodies which can move and respond to forces, collisions, and gravity.
Kinematic
readonlyKinematic:"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
readonlyStatic:"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.