Skip to content

marble3 / EntityShape

Type Alias: EntityShape ​

EntityShape = bullet.btCollisionShape & object

Defined in: src/entity/physic.ts:19

A collision shape that carries the id of the entity owning it, so a ray or contact hit can be resolved back to that entity. bullet-ts adds the two methods to every shape at runtime.

Type Declaration ​

getEntityId() ​

getEntityId(): string

Returns ​

string

setEntityId() ​

setEntityId(id): void

Parameters ​

id ​

string

Returns ​

void