IRigidBody 类型
Rigid body interface
索引
属性(properties)
rigidBodyRigidBody3DmassnumberlinearDampingnumberangularDampingnumberisKinematicbooleanuseGravitybooleanfixedRotationbooleanlinearFactorIVec3LikeangularFactorIVec3LikeallowSleepbooleanisAwakebooleanisSleepybooleanisSleepingboolean
方法
wakeUpsleepgetLinearVelocitysetLinearVelocitygetAngularVelocitysetAngularVelocityapplyForceapplyLocalForceapplyImpulseapplyLocalImpulseapplyTorqueapplyLocalTorque
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 |
参数列表
outIVec3Like
setLinearVelocity
| meta | description |
|---|---|
| 定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:108 |
参数列表
outIVec3Like
getAngularVelocity
| meta | description |
|---|---|
| 定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:113 |
参数列表
outIVec3Like
setAngularVelocity
| meta | description |
|---|---|
| 定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:118 |
参数列表
outIVec3Like
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 |
参数列表
torqueIVec3Like
applyLocalTorque
| meta | description |
|---|---|
| 定义于 | cocos2d/core/3d/physics/spec/I-rigid-body.ts:153 |
参数列表
torqueIVec3Like