AR_Engine_SDK
载入中...
搜索中...
未找到
函数 | 变量
XEPhysicsClothConfig.lua 文件参考

#include <XEPhysicsClothConfig.h>

类 XEPhysicsClothConfig 继承关系图:
Inheritance graph

函数

function XEPhysicsClothConfig new () end
 @type string
 
function XEPhysicsClothConfig__XEClothParam new (szName) end
 
function XEPhysicsClothConfig AcceptPreviewAnimatableModel (strPath) end
 
function XEPhysicsClothConfig GetPreviewAnimatableModelComponent () end
 
function XEPhysicsClothConfig SetWorld (pWorld) end
 
function XEPhysicsClothConfig GetWorld () end
 
function XEPhysicsClothConfig GetWindDir () end
 
function XEPhysicsClothConfig GetWindSpeed () end
 
function XEPhysicsClothConfig SetWindDir (vDir) end
 
function XEPhysicsClothConfig SetWindSpeed (fSpeed) end
 
function XEPhysicsClothConfig GetClothPrimitive (szMeshName) end
 
function XEPhysicsClothConfig CreateClothAttachModel (szClothPath, nSkinIndex) end
 
function XEPhysicsClothConfig CreateClothAttachModelWithClothPath (szClothPath, nSkinIndex) end
 
function XEPhysicsClothConfig RemoveAndReleaseClothAssetFromMesh (szMeshName) end
 
function XEPhysicsClothConfig GetClothPrimitive () end
 
function XEPhysicsClothConfig GetAllClothParamName () end
 
function XEPhysicsClothConfig SetModify (bModify) end
 
function XEPhysicsClothConfig GetIsModify () end
 
function XEPhysicsClothConfig GetMeshNameWithCloth () end
 
function XEPhysicsClothConfig IsModeBindCloth (szClothPath) end
 
function XEPhysicsClothConfig GetActorName () end
 

变量

 XEPhysicsClothConfig = {}
 

函数说明

◆ AcceptPreviewAnimatableModel()

function XEPhysicsClothConfig AcceptPreviewAnimatableModel ( strPath  )

根据路径创建一个actor,并将Actor绑定的布料资源注册到物理世界

参数
strPathstring 对应的资源路径
返回
boolean 是否成功创建

◆ CreateClothAttachModel()

function XEPhysicsClothConfig CreateClothAttachModel ( szClothPath  ,
nSkinIndex   
)

根据蒙皮索引和 cth 路径创建布料资源并绑定到模型上,内部是根据材质名进行匹配

参数
szClothPathstring 布料资源(cth)的路径,此路径是相对工程文件夹下.xscene文件的路径
nSkinIndexnumber 模型对象的蒙皮索引
返回
boolean 布料是否创建成功

◆ CreateClothAttachModelWithClothPath()

function XEPhysicsClothConfig CreateClothAttachModelWithClothPath ( szClothPath  ,
nSkinIndex   
)

根据蒙皮索引和 cth 路径创建布料资源并绑定到模型上,内部是根据材质名进行匹配

参数
szClothPathstring 布料资源(cth)的路径,此路径是相对工程文件夹下.xscene文件的路径
nSkinIndexnumber 模型对象的蒙皮索引
返回
IXCloth 创建的布料指针

◆ GetActorName()

function XEPhysicsClothConfig GetActorName ( )

获取绑定的Actor名字

返回
string

◆ GetAllClothParamName()

function XEPhysicsClothConfig GetAllClothParamName ( )

获取模型实例所绑定的所有布料资源

返回
XEClothParam[] 获取模型全部的布料属性

◆ GetClothPrimitive() [1/2]

function XEPhysicsClothConfig GetClothPrimitive ( )

获取模型实例所绑定的所有布料资源

返回
IXCloth[]
void

◆ GetClothPrimitive() [2/2]

function XEPhysicsClothConfig GetClothPrimitive ( szMeshName  )

获取模型指定的 mesh 上绑定布料资源对应的指针

参数
szMeshNamestring 模型上mesh名称
返回
IXCloth

◆ GetIsModify()

function XEPhysicsClothConfig GetIsModify ( )

获取是否有改动

返回
boolean 是否改动

◆ GetMeshNameWithCloth()

function XEPhysicsClothConfig GetMeshNameWithCloth ( )

获取所有带布料的mesh名称

返回
string[]
void

◆ GetPreviewAnimatableModelComponent()

function XEPhysicsClothConfig GetPreviewAnimatableModelComponent ( )

返回一个带动画的骨骼模型组件

返回
XEAnimatableModelComponent 一个带动画的骨骼模型组件指针

◆ GetWindDir()

function XEPhysicsClothConfig GetWindDir ( )

获取风的方向

返回
XVECTOR3 当前风的方向.

◆ GetWindSpeed()

function XEPhysicsClothConfig GetWindSpeed ( )

获取风的速度

返回
number 当前风的速度.

◆ GetWorld()

function XEPhysicsClothConfig GetWorld ( )

获取当前世界

返回
XEWorld 当前世界指针.

◆ IsModeBindCloth()

function XEPhysicsClothConfig IsModeBindCloth ( szClothPath  )

判断是否是模型绑定的布料

参数
szClothPathstring 布料的地址
返回
boolean

◆ new() [1/2]

function XEPhysicsClothConfig new ( )

@type string

XEPhysicsClothConfig_new00

返回
XEPhysicsClothConfig

@type XEClothParam[] XEPhysicsClothConfig_XEClothParam_new00

返回
XEPhysicsClothConfig__XEClothParam

◆ new() [2/2]

function XEPhysicsClothConfig__XEClothParam new ( szName  )

XEPhysicsClothConfig_XEClothParam_new01

参数
szNamestring
返回
XEPhysicsClothConfig__XEClothParam

◆ RemoveAndReleaseClothAssetFromMesh()

function XEPhysicsClothConfig RemoveAndReleaseClothAssetFromMesh ( szMeshName  )

从模型指定的 mesh 上移除布料并释放

参数
szMeshNamestring 模型上mesh名称
返回
void

◆ SetModify()

function XEPhysicsClothConfig SetModify ( bModify  )

设置是否有改动

参数
bModifyboolean 是否改动
返回
void

◆ SetWindDir()

function XEPhysicsClothConfig SetWindDir ( vDir  )

设置风的方向

参数
vDirXVECTOR3 风的方向.
返回
void

◆ SetWindSpeed()

function XEPhysicsClothConfig SetWindSpeed ( fSpeed  )

设置风的速度

参数
fSpeednumber 风的速度.
返回
void

◆ SetWorld()

function XEPhysicsClothConfig SetWorld ( pWorld  )

设置当前世界

参数
pWorldXEWorld 世界指针.
返回
void

变量说明

◆ XEPhysicsClothConfig