类型 数字 对象 刚体 库 physics.* 修订版本 版本 2024.3703 关键词 刚体,角速度 另请参阅 object.angularDamping object:applyAngularImpulse() object:applyTorque()
当前角(旋转)速度的数值,单位为度/秒。没有最小值或最大值限制 — 只需调整以获得所需的结果。
-- Create a rectangle local myRect = display.newRect( 0, 0, 100, 100 ) -- Add a body to the rectangle physics.addBody( myRect, "dynamic" ) -- Set the rectangle's angular velocity myRect.angularVelocity = 50