AR_Engine_SDK
|
函数 | |
function XBone | new () end |
function XBone | Init (pSkeleton) end |
function XBone | Release () end |
function XBone | Duplicate (pDstSkeleton) end |
function XBone | SetName (szName) end |
function XBone | GetName () end |
function XBone | GetSkeleton () end |
function XBone | SetSkeleton (pSkeleton) end |
function XBone | Update (nDeltaTime) end |
function XBone | GetParent () end |
function XBone | SetParent (iParent) end |
function XBone | GetParentPtr () end |
function XBone | GetRootBonePtr () end |
function XBone | AddChild (iChild) end |
function XBone | GetChild (iIndex) end |
function XBone | GetChildNum () end |
function XBone | GetChildPtr (iIndex) end |
function XBone | GetFirstController () end |
function XBone | SetFirstController (pController) end |
function XBone | ResetRelativeTM () end |
function XBone | SetRelativeTM (mat) end |
function XBone | SetRelativeTM (quRot, vTrans) end |
function XBone | GetRelativeTM () end |
function XBone | GetRelativeQuat () end |
function XBone | SetUpToParentTM (matUpToParent) end |
function XBone | GetLocalAbsTM () end |
function XBone | GetAbsoluteTM () end |
function XBone | SetLocalAbsTM (mat) end |
function XBone | SetAbsoluteTM (mat) end |
function XBone | IsInheritScale () end |
function XBone | SetInheritScale (InheritScale) end |
function XBone | SetLocalSF (vScale) end |
function XBone | GetLocalSF () end |
function XBone | SetGlobalSF (vScale) end |
function XBone | GetGlobalSF () end |
function XBone | GetBoneColliders () end |
function XBone | AddBoneCollider () end |
function XBone | RemoveBoneCollider (nIndex) end |
function XBone | GetBoneCollider (nIndex) end |
function XBone | GetBoneInitTM () end |
function XBone | SetBoneInitTM (mat) end |
function XBone | GetOriginalMatrix () end |
function XBone | SetOriginalMatrix (mat) end |
function XBone | GetOriginalPos () end |
function XBone | GetOriginalDir () end |
function XBone AddBoneCollider | ( | ) |
添加一个碰撞体,返回指针
function XBone AddChild | ( | iChild | ) |
给当前骨头添加子骨头
iChild | number 子骨头索引 |
function XBone GetBoneCollider | ( | nIndex | ) |
function XBone GetBoneColliders | ( | ) |
获取碰撞体信息
function XBone GetChild | ( | iIndex | ) |
获取当前骨头某个子骨头索引
iIndex | number [in]要获取的子节点的存储索引 |
function XBone GetChildNum | ( | ) |
获取当前骨头所有子节点个数
function XBone GetFirstController | ( | ) |
获取骨头控制器。注意:骨头更新时,会调用控制器,参与骨头各矩阵的计算
function XBone GetName | ( | ) |
获取骨头名称
function XBone GetOriginalDir | ( | ) |
[为引擎内部模块间调用接口]
function XBone GetParent | ( | ) |
获取骨头的父节点索引
function XBone GetRelativeQuat | ( | ) |
获取骨头相对矩阵的旋转四元数信息
function IXModelInstance GetSkeleton | ( | ) |
function XBone IsInheritScale | ( | ) |
父子骨头之间,是否继承缩放信息
function XBone Release | ( | ) |
释放
function XBone RemoveBoneCollider | ( | nIndex | ) |
添加一个碰撞体,返回指针
nIndex | number 删除的碰撞体索引 |
function XBone ResetRelativeTM | ( | ) |
重置骨头的相对矩阵. 使用m_matOriginRel来重置相对矩阵
function XBone SetFirstController | ( | pController | ) |
function XBone SetGlobalSF | ( | vScale | ) |
function XBone SetInheritScale | ( | InheritScale | ) |
设置父子骨头间是否继承缩放信息
InheritScale | boolean 是否继承缩放信息 |
function XBone SetName | ( | szName | ) |
设置骨头名称
szName | string 骨头名称 |
function XBone SetParent | ( | iParent | ) |
设置骨头的父节点索引
iParent | number 骨头的父节点索引 |
function XBone SetRelativeTM | ( | quRot | , |
vTrans | |||
) |
function XBone SetUpToParentTM | ( | matUpToParent | ) |
function XBone Update | ( | nDeltaTime | ) |
骨头更新,更新骨头的各矩阵信息, 绝对矩阵,父骨头空间矩阵等都会更新
nDeltaTime | number |
XBone Animation = 0 |
XBone AnimationScale = 0 |
XBone__BoneCollider bBoundOutside = false |
@type boolean
XBone BM_ABSTRACK = 0 |
XBone BM_COMBINE = 0 |
XBone BM_EXCLUSIVE = 0 |
XBone BM_NORMAL = 0 |
XBone BoneCollider = XBone__BoneCollider |
XBone BoneState = XBone__BoneState |
XBone__XBoneColliderRenderData capsules = {} |
@type XCusCapsule[]
XBone__XBoneRenderData color = {} |
@type XCOLORBASE
XBone__XBoneRenderData cones = {} |
@type XCusCone[]
XBone__BoneCollider fHeight = 0 |
@type number
XBone FLAG_FAKEBONE = 0 |
XBone FLAG_FLIPPED = 0 |
XBone__BoneCollider fRadius = 0 |
@type number
XBone__BoneState fWeight = 0 |
@type number
XBone__BoneState iBlendMode = 0 |
@type number
XBone__BoneState quOrientation = {} |
@type XQUATERNION
XBone Skeleton = 0 |
XBone__XBoneRenderData sphere = {} |
@type XCusSphere
XBone__XBoneColliderRenderData szBoneName = '' |
@type string @readonly
XBone TRANS_ALL = 0 |
XBone TRANS_ORI = 0 |
XBone TRANS_POS = 0 |
XBone TRANS_POS_X = 0 |
XBone TRANS_POS_Y = 0 |
XBone TRANS_POS_Z = 0 |
XBone__BoneCollider vCenter = {} |
@type XVECTOR3
XBone__BoneState vPos = {} |
@type XVECTOR3
XBone__BoneCollider vRotate = {} |
@type XVECTOR3
XBone = {} |
XBone__BoneCollider = {} |
XBone__BoneState = {} |
XBone XBoneColliderRenderData = XBone__XBoneColliderRenderData |
XBone XBoneRenderData = XBone__XBoneRenderData |