AR_Engine_SDK
|
Functions | |
function IXPhysicalManager | Init () end |
function IXPhysicalManager | Release () end |
function IXPhysicalManager | CreateScene (szSceneName) end |
function IXPhysicalManager | GetCloth (pInstance, szMeshName) end |
function IXPhysicalManager | GetCloth (pInstance, aCloth) end |
function IXPhysicalManager | GetCloth (pInstance) end |
function IXPhysicalManager | GetMeshNameWithCloth (pInstance, aMeshName) end |
function IXPhysicalManager | GetMeshNameWithCloth (pInstance) end |
function IXPhysicalManager | CreateCloth (szPath) end |
function IXPhysicalManager | AddCloth (pInstance, nSkinIndex, pCloth) end |
function IXPhysicalManager | RemoveCloth (pInstance) end |
function IXPhysicalManager | AddCloth (pInstance, nSkinIndex, szMeshName, pCloth) end |
function IXPhysicalManager | RemoveCloth (pInstance, szMeshName) end |
function IXPhysicalManager | SetClothInfoToSkin (pInstance) end |
function IXPhysicalManager | SaveCloth (szFile, pCloth) end |
function IXPhysicalManager | CreateRigidBody (eType, pBindObject) end |
function IXPhysicalManager | LoadPhysicsRes (sz, bReload) end |
function IXPhysicalManager | CreateSkeletalPhysicsInstance (szSkeletalPhysicsRes, pModelInstance, pOwningScene) end |
function IXPhysicalManager | SetWindSpeed (fWindSpeed) end |
function IXPhysicalManager | GetWindSpeed () end |
function IXPhysicalManager | SetWindDir (vDir) end |
function IXPhysicalManager | GetWindDir () end |
Variables | |
IXPhysicalManager = {} | |
function IXPhysicalManager AddCloth | ( | pInstance | , |
nSkinIndex | , | ||
pCloth | |||
) |
自动将布料实例与模型绑定,根据材质名进行匹配
pInstance | IXModelInstance 模型实例指针 |
nSkinIndex | number |
pCloth | IXCloth 布料实例指针 |
function IXPhysicalManager AddCloth | ( | pInstance | , |
nSkinIndex | , | ||
szMeshName | , | ||
pCloth | |||
) |
将布料实例与模型的某个mesh绑定
pInstance | IXModelInstance 模型实例指针 |
nSkinIndex | number |
szMeshName | string 模型mesh名称 |
pCloth | IXCloth 布料实例指针 |
function IXPhysicalManager CreateCloth | ( | szPath | ) |
function IXPhysicalManager CreateRigidBody | ( | eType | , |
pBindObject | |||
) |
创建一个刚体
eType | number 刚体类型 |
pBindObject | XBaseCoordSpace 一个BaseCoordSpace类,当前有模型和特效 |
function IXPhysicalManager CreateScene | ( | szSceneName | ) |
创建一个物理场景
szSceneName | string 场景名称 |
function IXPhysicalManager CreateSkeletalPhysicsInstance | ( | szSkeletalPhysicsRes | , |
pModelInstance | , | ||
pOwningScene | |||
) |
从骨骼物理资源创建骨骼物理实例
szSkeletalPhysicsRes | string 骨骼物理资源的路径 |
pModelInstance | IXModelInstance |
pOwningScene | IXPhysicsScene |
function IXPhysicalManager GetCloth | ( | pInstance | , |
szMeshName | |||
) |
从一个模型实例的某个Mesh上获取布料实例
pInstance | IXModelInstance 模型实例的指针 |
szMeshName | string mesh的名称 |
function IXPhysicalManager GetCloth | ( | pInstance | , |
aCloth | |||
) |
function IXPhysicalManager GetCloth | ( | pInstance | ) |
function IXPhysicalManager GetMeshNameWithCloth | ( | pInstance | , |
aMeshName | |||
) |
function IXPhysicalManager GetMeshNameWithCloth | ( | pInstance | ) |
function IXPhysicalManager GetWindDir | ( | ) |
获取全局风向
function IXPhysicalManager GetWindSpeed | ( | ) |
获取全局风速
function IXPhysicalManager Init | ( | ) |
初始化
function IXPhysicalManager LoadPhysicsRes | ( | sz | , |
bReload | |||
) |
function IXPhysicalManager Release | ( | ) |
释放
function IXPhysicalManager RemoveCloth | ( | pInstance | ) |
function IXPhysicalManager RemoveCloth | ( | pInstance | , |
szMeshName | |||
) |
function IXPhysicalManager SaveCloth | ( | szFile | , |
pCloth | |||
) |
function IXPhysicalManager SetClothInfoToSkin | ( | pInstance | ) |
function IXPhysicalManager SetWindDir | ( | vDir | ) |
设置全局风向
vDir | XVECTOR3 |
function IXPhysicalManager SetWindSpeed | ( | fWindSpeed | ) |
设置全局风速
fWindSpeed | number |
IXPhysicalManager = {} |