RigidBodyType 枚举

模块: cc

刚体类型

索引

  • Static
  • Kinematic
  • Dynamic
  • Animated

Details

Static

零质量,零速度,可以手动移动。

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsTypes.js:18
Kinematic

零质量,可以被设置速度。

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsTypes.js:26
Dynamic

有质量,可以设置速度,力等。

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsTypes.js:34
Animated

Kinematic 类型的扩展,可以被动画控制动画效果。

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsTypes.js:42

results matching ""

    No results matching ""