#include <PhysicalManager.h>
#include <PhysicalManager.h>

|
function IXPhysicalManager | CreateScene (szSceneName) end |
|
function IXPhysicalManager | GetCloth (pInstance, szMeshName) end |
|
function IXPhysicalManager | GetCloth (pInstance) 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 | 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 |
|
◆ AddCloth() [1/2]
自动将布料实例与模型绑定,根据材质名进行匹配
- 参数
-
- 返回
- boolean
◆ AddCloth() [2/2]
将布料实例与模型的某个mesh绑定
- 参数
-
- 返回
- boolean 失败情况:mesh已绑定/cloth已绑定/meshName未找到/骨骼名称不匹配等.
◆ CreateCloth()
从硬盘上加载一个布料实例
- 参数
-
- 返回
- IXCloth 布料实例的指针,如果失败返回空指针
◆ CreateRigidBody()
◆ CreateScene()
创建一个物理场景
- 参数
-
- 返回
- IXPhysicsScene 场景指针,创建失败返回NULL
◆ CreateSkeletalPhysicsInstance()
function IXPhysicalManager CreateSkeletalPhysicsInstance |
( |
szSkeletalPhysicsRes |
, |
|
|
pModelInstance |
, |
|
|
pOwningScene |
|
|
) |
| |
◆ GetCloth() [1/2]
从一个模型实例获取所有的布料实例
- 参数
-
- 返回
- IXCloth[]
-
void
◆ GetCloth() [2/2]
从一个模型实例的某个Mesh上获取布料实例
- 参数
-
- 返回
- IXCloth 布料实例的指针,如果没有绑定布料返回空指针
◆ GetMeshNameWithCloth()
获取所有带布料的mesh名称
- 参数
-
- 返回
- string[]
-
void
◆ GetWindDir()
◆ GetWindSpeed()
◆ LoadPhysicsRes()
从硬盘上加载一个物理资源(碰撞体)
- 参数
-
sz | string |
bReload | boolean 是否重加载 |
- 返回
- IXPhysicsRes 物理资源的指针,如果失败返回空指针
◆ RemoveCloth() [1/2]
移除模型实例某个mesh的所有布料
- 参数
-
- 返回
- void
◆ RemoveCloth() [2/2]
移除模型实例某个mesh的布料
- 参数
-
- 返回
- void
◆ SetClothInfoToSkin()
将模型实例当前的布料信息设置到Skin上
- 参数
-
- 返回
- void
◆ SetWindDir()
◆ SetWindSpeed()
◆ IXPhysicalManager