📜  梯子物理javascript代码示例

📅  最后修改于: 2022-03-11 15:01:35.100000             🧑  作者: Mango

代码示例1
if (this.x < subject.x + subject.width && this.x + this.width > subject.x && this.y < subject.y + subject.height && this.y + this.height > subject.y)
{
    this.canFall = false;
} else
{
    this.canFall = true;
}