Tag
一、Cocos2d-js旋转基础 在Cocos2d-js中,旋转是游戏开发中常用的操作。旋转角度以度为单位,顺时针方向为正,逆时针方向为负。旋转90度表示节点沿顺时针方向旋转了90度。 let angle = this.physicsBody.getAngularVelocity * dt; this.setRotation + angle); 二、碰撞检测与旋转 当两个物体发生碰撞时
查看更多 2025-04-05
Demand feedback
售前技术支持