新增flag 帮助处理位掩码
This commit is contained in:
8
source/src/ECS/Components/Physics/Collider.ts
Normal file
8
source/src/ECS/Components/Physics/Collider.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
abstract class Collider extends Component{
|
||||
public shape: Shape;
|
||||
public physicsLayer = 1 << 0;
|
||||
|
||||
public get bounds(): Rectangle {
|
||||
return this.shape.bounds;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user