update(dt: number) {
let x = this._velocity.x * dt;
let y = this._velocity.y * dt;
this.node.x += x;
this.node.y += y;
this._velocity.y += this.gravity; //模拟重力加速度
}
如题,人物掉落的时候,容易穿透一些高度较小的碰撞盒
总之就是,每帧更新位置时,移动的位置超过了碰撞盒的大小,
大佬们有没有啥好的解决办法不