Class: PhysicsBodyComponent
Defined in: physics/components/physics-body-component.ts:8
Component to manage physics bodies in the game. This component is used to represent a physics body in the game.
Extends
Constructors
Constructor
new PhysicsBodyComponent(
physicsBody):PhysicsBodyComponent
Defined in: physics/components/physics-body-component.ts:19
Creates an instance of PhysicsBodyComponent. This component is used to represent a physics body in the game.
Parameters
physicsBody
Body
Returns
PhysicsBodyComponent
Overrides
Properties
physicsBody
physicsBody:
Body
Defined in: physics/components/physics-body-component.ts:13
The physics body associated with this component. This is the Matter.js body that represents the physical properties of the entity.
Accessors
id
Get Signature
get
staticid():symbol
Defined in: ecs/types/Component.ts:12
The unique id of the component.
Returns
symbol