AR_Engine_SDK
Functions | Variables
XEPhysicsClothConfig.lua File Reference
类 XEPhysicsClothConfig 继承关系图:
Inheritance graph

Functions

function XEPhysicsClothConfig new () end
 @type string More...
 
function XEPhysicsClothConfig__XEClothParam new (szName) end
 
function XEPhysicsClothConfig Release () 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 (pCloths) end
 
function XEPhysicsClothConfig GetClothPrimitive () end
 
function XEPhysicsClothConfig GetAllClothParamName () end
 
function XEPhysicsClothConfig SetModify (bModify) end
 
function XEPhysicsClothConfig GetIsModify () end
 
function XEPhysicsClothConfig GetMeshNameWithCloth (aMeshName) end
 
function XEPhysicsClothConfig GetMeshNameWithCloth () end
 
function XEPhysicsClothConfig IsModeBindCloth (szClothPath) end
 
function XEPhysicsClothConfig GetActorName () end
 

Variables

 XEPhysicsClothConfig = {}
 

Function Documentation

◆ AcceptPreviewAnimatableModel()

function XEPhysicsClothConfig AcceptPreviewAnimatableModel ( strPath  )

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

Parameters
strPathstring 对应的资源路径
Returns
boolean 是否成功创建

◆ CreateClothAttachModel()

function XEPhysicsClothConfig CreateClothAttachModel ( szClothPath  ,
nSkinIndex   
)

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

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

◆ CreateClothAttachModelWithClothPath()

function XEPhysicsClothConfig CreateClothAttachModelWithClothPath ( szClothPath  ,
nSkinIndex   
)

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

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

◆ GetActorName()

function XEPhysicsClothConfig GetActorName ( )

获取绑定的Actor名字

Returns
string

◆ GetAllClothParamName()

function XEPhysicsClothConfig GetAllClothParamName ( )

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

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

◆ GetClothPrimitive() [1/3]

function XEPhysicsClothConfig GetClothPrimitive ( szMeshName  )

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

Parameters
szMeshNamestring 模型上mesh名称
Returns
IXCloth

◆ GetClothPrimitive() [2/3]

function XEPhysicsClothConfig GetClothPrimitive ( pCloths  )

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

Parameters
pClothsIXCloth[] [out]当前模型实例绑定的布料资源列表
Returns
void

◆ GetClothPrimitive() [3/3]

function XEPhysicsClothConfig GetClothPrimitive ( )

XEPhysicsClothConfig_GetClothPrimitive02

Returns
IXCloth[]
void

◆ GetIsModify()

function XEPhysicsClothConfig GetIsModify ( )

获取是否有改动

Returns
boolean 是否改动

◆ GetMeshNameWithCloth() [1/2]

function XEPhysicsClothConfig GetMeshNameWithCloth ( aMeshName  )

获取所有带布料的mesh名称

Parameters
aMeshNamestring[]
Returns
void

◆ GetMeshNameWithCloth() [2/2]

function XEPhysicsClothConfig GetMeshNameWithCloth ( )

XEPhysicsClothConfig_GetMeshNameWithCloth01

Returns
string[]
void

◆ GetPreviewAnimatableModelComponent()

function XEPhysicsClothConfig GetPreviewAnimatableModelComponent ( )

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

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

◆ GetWindDir()

function XEPhysicsClothConfig GetWindDir ( )

获取风的方向

Returns
XVECTOR3 当前风的方向.

◆ GetWindSpeed()

function XEPhysicsClothConfig GetWindSpeed ( )

获取风的速度

Returns
number 当前风的速度.

◆ GetWorld()

function XEPhysicsClothConfig GetWorld ( )

获取当前世界

Returns
XEWorld 当前世界指针.

◆ IsModeBindCloth()

function XEPhysicsClothConfig IsModeBindCloth ( szClothPath  )

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

Parameters
szClothPathstring 布料的地址
Returns
boolean

◆ new() [1/2]

function XEPhysicsClothConfig new ( )

@type string

XEPhysicsClothConfig_new00

Returns
XEPhysicsClothConfig

@type XEClothParam[] XEPhysicsClothConfig_XEClothParam_new00

Returns
XEPhysicsClothConfig__XEClothParam

◆ new() [2/2]

function XEPhysicsClothConfig__XEClothParam new ( szName  )

XEPhysicsClothConfig_XEClothParam_new01

Parameters
szNamestring
Returns
XEPhysicsClothConfig__XEClothParam

◆ Release()

function XEPhysicsClothConfig Release ( )

释放当前 XEUserNodeInstance 的根组件资源和扩展参数列表对象

Returns
void

◆ RemoveAndReleaseClothAssetFromMesh()

function XEPhysicsClothConfig RemoveAndReleaseClothAssetFromMesh ( szMeshName  )

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

Parameters
szMeshNamestring 模型上mesh名称
Returns
void

◆ SetModify()

function XEPhysicsClothConfig SetModify ( bModify  )

设置是否有改动

Parameters
bModifyboolean 是否改动
Returns
void

◆ SetWindDir()

function XEPhysicsClothConfig SetWindDir ( vDir  )

设置风的方向

Parameters
vDirXVECTOR3 风的方向.
Returns
void

◆ SetWindSpeed()

function XEPhysicsClothConfig SetWindSpeed ( fSpeed  )

设置风的速度

Parameters
fSpeednumber 风的速度.
Returns
void

◆ SetWorld()

function XEPhysicsClothConfig SetWorld ( pWorld  )

设置当前世界

Parameters
pWorldXEWorld 世界指针.
Returns
void

Variable Documentation

◆ XEPhysicsClothConfig