新增shapecollision 用于计算多边形碰撞
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
abstract class Collider extends Component{
|
||||
public shape: Shape;
|
||||
public physicsLayer = 1 << 0;
|
||||
public isTrigger: boolean;
|
||||
|
||||
public get bounds(): Rectangle {
|
||||
return this.shape.bounds;
|
||||
|
||||
Reference in New Issue
Block a user