Files
esengine/source/src/ECS/Components/Physics/Colliders/Collider.ts

17 lines
418 B
TypeScript
Raw Normal View History

2020-06-12 08:47:13 +08:00
abstract class Collider extends Component{
public shape: Shape;
public physicsLayer = 1 << 0;
public isTrigger: boolean;
2020-06-15 10:42:06 +08:00
public registeredPhysicsBounds: Rectangle;
protected _isParentEntityAddedToScene;
protected _isPositionDirty = true;
protected _colliderRequiresAutoSizing;
2020-06-12 08:47:13 +08:00
public get bounds(): Rectangle {
return this.shape.bounds;
}
2020-06-15 10:42:06 +08:00
public initialize() {
}
2020-06-12 08:47:13 +08:00
}