移除物理引擎 移动到新库
This commit is contained in:
17
source/src/ECS/Components/Physics/Colliders/Collider.ts
Normal file
17
source/src/ECS/Components/Physics/Colliders/Collider.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
abstract class Collider extends Component{
|
||||
public shape: Shape;
|
||||
public physicsLayer = 1 << 0;
|
||||
public isTrigger: boolean;
|
||||
public registeredPhysicsBounds: Rectangle;
|
||||
|
||||
protected _isParentEntityAddedToScene;
|
||||
protected _isPositionDirty = true;
|
||||
protected _colliderRequiresAutoSizing;
|
||||
|
||||
public get bounds(): Rectangle {
|
||||
return this.shape.bounds;
|
||||
}
|
||||
|
||||
public initialize() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user