Properties
Private rotation
rotation: number
Private started
started: boolean
Private useGravity
useGravity: boolean
Static Private ids
ids: number = 0
Methods
addComponent
- addComponent<T>(type: object): T
-
Type parameters
Parameters
Returns T
Private checkForCollision
- checkForCollision(savedPos: any): void
isUsingGravity
- isUsingGravity(): boolean
removeComponent
- removeComponent(className: string): void
setPosition
- setPosition(position: Vector2): void
setRotation
- setRotation(rotation: number): void
setShape
- setShape(shape: Shape): void
setUseGravity
- setUseGravity(useGravity: boolean): void
setVelocity
- setVelocity(velocity: Vector2): void
setWorld
- setWorld(world: World): void
update
- update(deltaTime: number): void