AR_Engine_SDK
|
Functions | |
function XClothStretchConfig | new () end |
function IXCloth | Release () end |
function IXCloth | GetName () end |
function IXCloth | IsRender () end |
function IXCloth | SetRender (bSet) end |
function IXCloth | IsSimulate () end |
function IXCloth | SetSimulate (bSet) end |
function IXCloth | GetClothMaterial () end |
function IXCloth | SetClothMaterial (Material) end |
function IXCloth | GetStiffnessFrequency () end |
function IXCloth | SetStiffnessFrequency (fStiffnessFrequency) end |
function IXCloth | GetStretchConfig (eType) end |
function IXCloth | SetStretchConfig (eType, param) end |
function IXCloth | GetTetherConfig () end |
function IXCloth | SetTetherConfig (config) end |
function IXCloth | GetDamping () end |
function IXCloth | SetDamping (fDamping) end |
function IXCloth | GetDrag () end |
function IXCloth | SetDrag (fDrag) end |
function IXCloth | GetFriction () end |
function IXCloth | SetFriction (fFriction) end |
function IXCloth | GetMassScale () end |
function IXCloth | SetMassScale (fMassScale) end |
function IXCloth | GetSolverFrequency () end |
function IXCloth | SetSolverFrequency (fSolverFrequency) end |
function IXCloth | GetInertiaScale () end |
function IXCloth | SetInertiaScale (fInertiaScale) end |
function IXCloth | GetSelfCollisionThickness () end |
function IXCloth | SetSelfCollisionThickness (fSelfCollisionThickness) end |
function IXCloth | GetSelfCollisionStiffness () end |
function IXCloth | SetSelfCollisionStiffness (fSelfCollisionStiffness) end |
function IXCloth | GetExtraScale () end |
function IXCloth | SetExtraScale (fExtraScale) end |
function IXCloth | SetRenderCollision (bRender) end |
function IXCloth | SetRenderCollision (bRender, clr) end |
function IXCloth | SetRenderNormal (bRender) end |
function IXCloth | SetRenderNormal (bRender, clr) end |
function IXCloth | SetRenderTangent (bRender) end |
function IXCloth | SetRenderTangent (bRender, clr) end |
function IXCloth | SetRenderMaxDistance (bRender) end |
function IXCloth | SetRenderMaxDistance (bRender, clr) end |
Variables | |
XCST_INVALID = 0 | |
XCST_VERTICAL = 0 | |
XCST_HORIZONTAL = 0 | |
XCST_BENDING = 0 | |
XCST_SHEARING = 0 | |
XClothStretchConfig = {} | |
function IXCloth GetClothMaterial | ( | ) |
获取布料材质信息
function IXCloth GetDamping | ( | ) |
获取阻尼系数,用来降低布料顶点之间的相对速度。此值越大,布料看起来就越“粘稠”。
function IXCloth GetDrag | ( | ) |
获取三个轴的阻力系数
function IXCloth GetExtraScale | ( | ) |
IXCloth_GetExtraScale00
function IXCloth GetFriction | ( | ) |
获取碰撞表面的摩擦系数
function IXCloth GetInertiaScale | ( | ) |
获取惯性缩放因子
function IXCloth GetMassScale | ( | ) |
获取刚体质量缩放系数
function IXCloth GetName | ( | ) |
获取布料名称
function IXCloth GetSelfCollisionStiffness | ( | ) |
获取自碰撞的刚度,定义粒子碰撞时分离冲量的强度。
function IXCloth GetSelfCollisionThickness | ( | ) |
获取自碰撞的距离,模拟布料的厚度。自身碰撞可以在布料的任意顶点之间进行碰撞测试, 每个顶点以半径为SelfCollisionThickness的球体表示。此值越大,减少了布料自缠绕的问题,同时也会阻止布料起皱。
function IXCloth GetSolverFrequency | ( | ) |
获取解码器频率。即每秒模拟计算的频率。此值越小,布料越有弹性。
function IXCloth GetStiffnessFrequency | ( | ) |
获取刚体频率(不建议布料绑定后更改此参数)
function IXCloth GetTetherConfig | ( | ) |
获取绳索约束数据
function IXCloth IsRender | ( | ) |
判断是否渲染
function IXCloth IsSimulate | ( | ) |
判断是否开启了模拟
function XClothStretchConfig new | ( | ) |
XClothStretchConfig_new00
XClothTetherConfig_new00
function IXCloth Release | ( | ) |
释放
function IXCloth SetClothMaterial | ( | Material | ) |
function IXCloth SetDamping | ( | fDamping | ) |
设置阻尼系数,用来降低布料顶点之间的相对速度。此值越大,布料看起来就越“粘稠”。
fDamping | number 阻尼系数 |
function IXCloth SetDrag | ( | fDrag | ) |
设置三个轴的阻力系数
fDrag | number 三个轴的阻力系数 |
function IXCloth SetExtraScale | ( | fExtraScale | ) |
IXCloth_SetExtraScale00
fExtraScale | number |
function IXCloth SetFriction | ( | fFriction | ) |
设置碰撞表面的摩擦系数
fFriction | number 碰撞表面的摩擦系数 |
function IXCloth SetInertiaScale | ( | fInertiaScale | ) |
设置惯性缩放因子
fInertiaScale | number 惯性缩放因子 |
function IXCloth SetMassScale | ( | fMassScale | ) |
设置刚体质量缩放系数
fMassScale | number 刚体质量缩放系数 |
function IXCloth SetRender | ( | bSet | ) |
设置是否渲染
bSet | boolean 是否渲染 |
function IXCloth SetRenderCollision | ( | bRender | ) |
设置渲染碰撞信息
bRender | boolean 是否渲染 |
function IXCloth SetRenderCollision | ( | bRender | , |
clr | |||
) |
function IXCloth SetRenderMaxDistance | ( | bRender | ) |
设置渲染最大距离
bRender | boolean 是否渲染 |
function IXCloth SetRenderMaxDistance | ( | bRender | , |
clr | |||
) |
function IXCloth SetRenderNormal | ( | bRender | ) |
设置渲染法线
bRender | boolean 是否渲染 |
function IXCloth SetRenderNormal | ( | bRender | , |
clr | |||
) |
function IXCloth SetRenderTangent | ( | bRender | ) |
设置渲染切线
bRender | boolean 是否渲染 |
function IXCloth SetRenderTangent | ( | bRender | , |
clr | |||
) |
function IXCloth SetSelfCollisionStiffness | ( | fSelfCollisionStiffness | ) |
设置自碰撞的刚度,定义粒子碰撞时分离冲量的强度。
fSelfCollisionStiffness | number 自碰撞的刚度 |
function IXCloth SetSelfCollisionThickness | ( | fSelfCollisionThickness | ) |
设置自碰撞的距离,模拟布料的厚度。自身碰撞可以在布料的任意顶点之间进行碰撞测试, 每个顶点以半径为SelfCollisionThickness的球体表示。此值越大,减少了布料自缠绕的问题,同时也会阻止布料起皱。
fSelfCollisionThickness | number 自碰撞的距离 |
function IXCloth SetSimulate | ( | bSet | ) |
设置是否开启模拟
bSet | boolean 是否开启模拟 |
function IXCloth SetSolverFrequency | ( | fSolverFrequency | ) |
设置解码器频率。即每秒模拟计算的频率。此值越小,布料越有弹性。
fSolverFrequency | number 解码器频率 |
function IXCloth SetStiffnessFrequency | ( | fStiffnessFrequency | ) |
设置刚体频率(不建议布料绑定后更改此参数)
fStiffnessFrequency | number 刚体频率 |
function IXCloth SetTetherConfig | ( | config | ) |
XClothStretchConfig = {} |
XCST_BENDING = 0 |
XCST_HORIZONTAL = 0 |
XCST_INVALID = 0 |
XCST_SHEARING = 0 |
XCST_VERTICAL = 0 |