Skip to content

1681-engine / index / Positioned

Interface: Positioned ​

Defined in: src/physics/syncToBody.ts:4

Anything with a settable position: a Pixi container, a sprite, a plain object.

Properties ​

rotation? ​

ts
optional rotation?: number;

Defined in: src/physics/syncToBody.ts:8

Set to the body's angle when the body rotates or stands at an angle; left alone otherwise.


x ​

ts
x: number;

Defined in: src/physics/syncToBody.ts:5


y ​

ts
y: number;

Defined in: src/physics/syncToBody.ts:6

Released under the MIT License.