AR_Engine_SDK
|
Functions | |
function IXSkeletalPhysicsInstance | Release () end |
function IXSkeletalPhysicsInstance | SetAllBodiesSimulatePhysics (bSimulate) end |
function IXSkeletalPhysicsInstance | SetAllBodiesBelowSimulatePhysics (szBoneName, bSimulate, bIncludeSelf) end |
function IXSkeletalPhysicsInstance | OnBindModelInstanceTransformChanged (fScaleEpsilon) end |
function IXSkeletalPhysicsInstance | GetBody (strBoneName) end |
function IXSkeletalPhysicsInstance | GetBodyNumber () end |
function IXSkeletalPhysicsInstance | GetBody (nBodyIndex) end |
Variables | |
IXSkeletalPhysicsInstance = {} | |
function IXSkeletalPhysicsInstance GetBody | ( | strBoneName | ) |
function IXSkeletalPhysicsInstance GetBody | ( | nBodyIndex | ) |
function IXSkeletalPhysicsInstance GetBodyNumber | ( | ) |
获取所有body数目
function IXSkeletalPhysicsInstance OnBindModelInstanceTransformChanged | ( | fScaleEpsilon | ) |
模型实例的变换矩阵发生变化时,需要更新骨骼物理的状态
fScaleEpsilon | number 标示Scale变化的阈值 |
function IXSkeletalPhysicsInstance Release | ( | ) |
释放
function IXSkeletalPhysicsInstance SetAllBodiesBelowSimulatePhysics | ( | szBoneName | , |
bSimulate | , | ||
bIncludeSelf | |||
) |
给当前骨头的刚体的子刚体设置是否启用物理模拟
szBoneName | string 骨头名称 |
bSimulate | boolean 是否启用物理模拟 |
bIncludeSelf | boolean 是否包含自己,如果为xtrue,同时设置自己,默认为xtrue |
function IXSkeletalPhysicsInstance SetAllBodiesSimulatePhysics | ( | bSimulate | ) |
设置所有刚体是否启用物理模拟
bSimulate | boolean 是否启用物理模拟 |