Add shape prop
This commit is contained in:
parent
a886c73047
commit
d6aaf734fe
|
@ -17,6 +17,7 @@ export class Sensor {
|
||||||
export class Entity {
|
export class Entity {
|
||||||
sprite: SpriteInstance
|
sprite: SpriteInstance
|
||||||
body?: planck.Body
|
body?: planck.Body
|
||||||
|
shape?: planck.Shape
|
||||||
velocity: [number, number] = [0, 0]
|
velocity: [number, number] = [0, 0]
|
||||||
acceleration: number = 0.5
|
acceleration: number = 0.5
|
||||||
maxSpeed: number = 4
|
maxSpeed: number = 4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user