Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如何让怪物生成的位置避开刚体?就是不要在带有刚体的障碍物位置生成怪物。
一直循环,生成后判断怪物是否与刚体对象对象重叠,是的话就销毁,不是的话就跳出循环试试
咋写呢,用对比偏移重叠那个条件写,没有效果啊
while循环 ||| 随机位置创建怪物实例 当怪物实例与刚体组偏移重叠时 ||| 销毁怪物实例 否则 ||| 停止循环