IRigidBody
Class
Rigid body interface
Index
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
Methods
wakeUp
sleep
getLinearVelocity
setLinearVelocity
getAngularVelocity
setAngularVelocity
applyForce
applyLocalForce
applyImpulse
applyLocalImpulse
applyTorque
applyLocalTorque
Details
Properties
rigidBody
meta | description |
---|---|
Type | RigidBody3D |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:37 |
mass
meta | description |
---|---|
Type | number |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:42 |
linearDamping
meta | description |
---|---|
Type | number |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:46 |
angularDamping
meta | description |
---|---|
Type | number |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:50 |
isKinematic
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:54 |
useGravity
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:58 |
fixedRotation
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:62 |
linearFactor
meta | description |
---|---|
Type | IVec3Like |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:66 |
angularFactor
meta | description |
---|---|
Type | IVec3Like |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:70 |
allowSleep
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:74 |
isAwake
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:78 |
isSleepy
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:83 |
isSleeping
meta | description |
---|---|
Type | boolean |
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:88 |
Methods
wakeUp
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:94 |
sleep
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:98 |
getLinearVelocity
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:103 |
Parameters
out
IVec3Like
setLinearVelocity
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:108 |
Parameters
out
IVec3Like
getAngularVelocity
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:113 |
Parameters
out
IVec3Like
setAngularVelocity
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:118 |
Parameters
out
IVec3Like
applyForce
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:124 |
Parameters
applyLocalForce
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:130 |
Parameters
applyImpulse
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:136 |
Parameters
applyLocalImpulse
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:142 |
Parameters
applyTorque
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:148 |
Parameters
torque
IVec3Like
applyLocalTorque
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/spec/I-rigid-body.ts:153 |
Parameters
torque
IVec3Like