AR_Engine_SDK
|
函数 | |
function XHitMeshInfo | new () end |
function XOutputVertexTransform | new (otherPosition, otherTangentZ, otherTangentX) end |
function IXModelInstance | Release () end |
function IXModelInstance | RayTraceToAABB (vStart, vDelta) end |
function IXModelInstance | RayTraceToMesh (vStart, vDelta, bForceTwoSided) end |
function IXModelInstance | Hide (bHide) end |
function IXModelInstance | IsHidden () end |
function IXModelInstance | SetMeshHide (szMeshName, bHide) end |
function IXModelInstance | IsMeshHide (szMeshName) end |
function IXModelInstance | GetSkinModel () end |
function IXModelInstance | GetSkeleton () end |
function IXModelInstance | GetBoneOBB () end |
function IXModelInstance | GetSkinModelType () end |
function IXModelInstance | GetBoneAABB (szBoneName) end |
function IXModelInstance | UpdateSkinInfoAndMeshInfo () end |
function IXModelInstance | ChangeSkeleton () end |
function IXModelInstance | UpdateBlendMatrix (bClearPreMatrix) end |
function IXModelInstance | GetBlendMatrix (nSkinIndex, nLODIndex, nMeshIndex) end |
function IXModelInstance | UpdateBlendMatrixAndAABB () end |
function IXModelInstance | SetSkinCurrentLOD (szSkinName, nLODIndex) end |
function IXModelInstance | SetSkinCurrentLOD (nSkinIndex, nLODIndex) end |
function IXModelInstance | Tick (nDeltaTime, bClearPreMatrix) end |
function IXModelInstance | SetMeshAsCloth (szMeshName, bIsCloth) end |
function IXModelInstance | TickAABB () end |
function IXModelInstance | SetRawMeshMtlIns (szSkinName, szMeshName, szMtlIns, nLODIndex) end |
function IXModelInstance | GetRawMeshMtlIns (szSkinName, szMeshName, nLODIndex) end |
变量 | |
XHitMeshInfo = {} | |
XHitMeshInfo | strHitBoneName = '' |
@type string | |
XHitMeshInfo | strHitSkinName = '' |
@type string | |
XHitMeshInfo | strHitMeshName = '' |
@type string | |
XHitMeshInfo | pMeshMtlIns = {} |
@type IXMaterialInstance | |
function IXModelInstance ChangeSkeleton | ( | ) |
更换模型实例的骨架
function IXModelInstance GetBlendMatrix | ( | nSkinIndex | , |
nLODIndex | , | ||
nMeshIndex | |||
) |
获取模型实例指定Mesh的骨架矩阵信息
nSkinIndex | number Skin索引 |
nLODIndex | number LOD索引 |
nMeshIndex | number Mesh索引 |
function IXModelInstance GetBoneAABB | ( | szBoneName | ) |
function IXModelInstance GetBoneOBB | ( | ) |
IXModelInstance_GetBoneOBB00
function IXModelInstance GetRawMeshMtlIns | ( | szSkinName | , |
szMeshName | , | ||
nLODIndex | |||
) |
IXModelInstance_GetRawMeshMtlIns00
szSkinName | string |
szMeshName | string |
nLODIndex | number |
function IXModelInstance GetSkeleton | ( | ) |
获取模型骨架对象
function IXModelInstance GetSkinModel | ( | ) |
获取模型模板
function IXModelInstance GetSkinModelType | ( | ) |
获取模型对应的类型
function IXModelInstance Hide | ( | bHide | ) |
设置是否隐藏模型
bHide | boolean 是否隐藏模型 |
function IXModelInstance IsHidden | ( | ) |
判断模型是否隐藏
function IXModelInstance IsMeshHide | ( | szMeshName | ) |
某个特定名称的mesh是否显示,不区分Skin
szMeshName | string |
function XHitMeshInfo new | ( | ) |
XHitMeshInfo_new00
XRAYTRACERT_new00
XOutputVertexTransform_new00
MeshToBeCombined_new00
IXModelInstance_new00
function XOutputVertexTransform new | ( | otherPosition | , |
otherTangentZ | , | ||
otherTangentX | |||
) |
XOutputVertexTransform_new01
function IXModelInstance RayTraceToAABB | ( | vStart | , |
vDelta | |||
) |
function IXModelInstance RayTraceToMesh | ( | vStart | , |
vDelta | , | ||
bForceTwoSided | |||
) |
IXModelInstance_RayTraceToMesh00
function IXModelInstance Release | ( | ) |
释放模型实例资源
function IXModelInstance SetMeshAsCloth | ( | szMeshName | , |
bIsCloth | |||
) |
设置指定Mesh为布料Mesh
szMeshName | string 指定Mesh名称 |
bIsCloth | boolean 是否为布料Mesh |
function IXModelInstance SetMeshHide | ( | szMeshName | , |
bHide | |||
) |
设置某个特定名称的mesh隐藏或显示,不区分Skin
szMeshName | string |
bHide | boolean 是否隐藏模型 |
function IXModelInstance SetRawMeshMtlIns | ( | szSkinName | , |
szMeshName | , | ||
szMtlIns | , | ||
nLODIndex | |||
) |
IXModelInstance_SetRawMeshMtlIns00
szSkinName | string |
szMeshName | string |
szMtlIns | string |
nLODIndex | number |
function IXModelInstance SetSkinCurrentLOD | ( | nSkinIndex | , |
nLODIndex | |||
) |
IXModelInstance_SetSkinCurrentLOD01
nSkinIndex | number |
nLODIndex | number |
function IXModelInstance SetSkinCurrentLOD | ( | szSkinName | , |
nLODIndex | |||
) |
设置模型指定Skin使用的当前LOD
szSkinName | string ornSkinIndexSkin名称或Skin索引 |
nLODIndex | number LOD索引,设置为-1表示自动LOD |
function IXModelInstance Tick | ( | nDeltaTime | , |
bClearPreMatrix | |||
) |
更新当前模型实例
nDeltaTime | number 更新间隔 |
bClearPreMatrix | boolean 是否清除之前的矩阵信息 |
function IXModelInstance TickAABB | ( | ) |
更新模型实例的AABB包围盒
function IXModelInstance UpdateBlendMatrix | ( | bClearPreMatrix | ) |
更新模型实例的骨架矩阵信息
bClearPreMatrix | boolean 是否清除上一帧的矩阵信息 |
function IXModelInstance UpdateBlendMatrixAndAABB | ( | ) |
更新模型实例的融合矩阵和AABB包围盒
function IXModelInstance UpdateSkinInfoAndMeshInfo | ( | ) |
更新模型实例的Skin信息和Mesh信息
XHitMeshInfo pMeshMtlIns = {} |
@type IXMaterialInstance
XHitMeshInfo strHitBoneName = '' |
@type string
XHitMeshInfo strHitMeshName = '' |
@type string
XHitMeshInfo strHitSkinName = '' |
@type string
XHitMeshInfo = {} |