2020-06-12 08:47:13 +08:00
|
|
|
abstract class Collider extends Component{
|
|
|
|
|
public shape: Shape;
|
|
|
|
|
public physicsLayer = 1 << 0;
|
2020-06-12 20:24:51 +08:00
|
|
|
public isTrigger: boolean;
|
2020-06-12 08:47:13 +08:00
|
|
|
|
|
|
|
|
public get bounds(): Rectangle {
|
|
|
|
|
return this.shape.bounds;
|
|
|
|
|
}
|
|
|
|
|
}
|