Add sensor type
This commit is contained in:
parent
968db6aa0b
commit
22fe8e9fb1
|
@ -3,6 +3,17 @@ import { SpriteInstance } from '../shared/sprites'
|
|||
import { WorldContext } from './World'
|
||||
import { Zone } from './Zone'
|
||||
|
||||
export class Sensor {
|
||||
entity: Entity
|
||||
fixture: planck.Fixture
|
||||
type: 'short'|'long'
|
||||
constructor(entity: Entity, fixture: planck.Fixture, type: 'short'|'long') {
|
||||
this.entity = entity
|
||||
this.fixture = fixture
|
||||
this.type = type
|
||||
}
|
||||
}
|
||||
|
||||
export class Entity {
|
||||
sprite: SpriteInstance
|
||||
body?: planck.Body
|
||||
|
|
Loading…
Reference in New Issue
Block a user