Skip to main content

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.

Implements

Constructors

Constructor

new PhysicsBodyComponent(physicsBody): PhysicsBodyComponent

Defined in: physics/components/physics-body-component.ts:23

Creates an instance of PhysicsBodyComponent. This component is used to represent a physics body in the game.

Parameters

physicsBody

Body

Returns

PhysicsBodyComponent

Properties

name

name: symbol

Defined in: physics/components/physics-body-component.ts:9

The unique name of the component.

Implementation of

Component.name


physicsBody

physicsBody: Body

Defined in: physics/components/physics-body-component.ts:15

The physics body associated with this component. This is the Matter.js body that represents the physical properties of the entity.


symbol

readonly static symbol: typeof symbol

Defined in: physics/components/physics-body-component.ts:17