IRigidBody
类型
Rigid body interface
索引
属性(properties)
rigidBody
RigidBody3D
mass
number
linearDamping
number
angularDamping
number
isKinematic
boolean
useGravity
boolean
fixedRotation
boolean
linearFactor
IVec3Like
angularFactor
IVec3Like
allowSleep
boolean
isAwake
boolean
isSleepy
boolean
isSleeping
boolean
方法
wakeUp
sleep
getLinearVelocity
setLinearVelocity
getAngularVelocity
setAngularVelocity
applyForce
applyLocalForce
applyImpulse
applyLocalImpulse
applyTorque
applyLocalTorque
Details
属性(properties)
rigidBody
meta | description |
---|---|
类型 | RigidBody3D |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:37 |
mass
meta | description |
---|---|
类型 | number |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:42 |
linearDamping
meta | description |
---|---|
类型 | number |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:46 |
angularDamping
meta | description |
---|---|
类型 | number |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:50 |
isKinematic
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:54 |
useGravity
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:58 |
fixedRotation
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:62 |
linearFactor
meta | description |
---|---|
类型 | IVec3Like |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:66 |
angularFactor
meta | description |
---|---|
类型 | IVec3Like |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:70 |
allowSleep
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:74 |
isAwake
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:78 |
isSleepy
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:83 |
isSleeping
meta | description |
---|---|
类型 | boolean |
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:88 |
方法
wakeUp
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:94 |
sleep
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:98 |
getLinearVelocity
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:103 |
参数列表
out
IVec3Like
setLinearVelocity
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:108 |
参数列表
out
IVec3Like
getAngularVelocity
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:113 |
参数列表
out
IVec3Like
setAngularVelocity
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:118 |
参数列表
out
IVec3Like
applyForce
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:124 |
参数列表
applyLocalForce
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:130 |
参数列表
applyImpulse
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:136 |
参数列表
applyLocalImpulse
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:142 |
参数列表
applyTorque
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:148 |
参数列表
torque
IVec3Like
applyLocalTorque
meta | description |
---|---|
定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:153 |
参数列表
torque
IVec3Like