Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想它非常自我解释,我需要知道在启用物理引擎时是否可以禁用/防止对象旋转。物体大部分时间都会下落,因此会受到重力的影响。
它是,只需使用:
object.isFixedRotation = true
要“暂停”旋转,请使用:
object.angularVelocity = 0
在任何给定点。