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

Functions

function XEPrimitiveComponent new () end
 
function XEPrimitiveComponent Release () end
 
function XEPrimitiveComponent Empty () end
 
function XEPrimitiveComponent SetDeleted (bDelete) end
 
function XEPrimitiveComponent EmptyPhysics () end
 
function XEPrimitiveComponent SetPhysicalAssetPath (szPath) end
 
function XEPrimitiveComponent GetPhysicalAssetPath () end
 
function XEPrimitiveComponent LoadPhysicalAsset (pPath) end
 
function XEPrimitiveComponent LoadPhysicalAsset (pPath, eType) end
 
function XEPrimitiveComponent IsLoadedPhysicalRes () end
 
function XEPrimitiveComponent RemovePhysicalAsset () end
 
function XEPrimitiveComponent IsGravityEnabled () end
 
function XEPrimitiveComponent SetGravityEnabled (bSet) end
 
function XEPrimitiveComponent GetShapeMaterial (shapeMaterial) end
 
function XEPrimitiveComponent GetShapeMaterial () end
 
function XEPrimitiveComponent SetShapeMaterial (shapeMaterial) end
 
function XEPrimitiveComponent IsSimulatePhysics () end
 
function XEPrimitiveComponent SetSimulatePhysics (bSimulate) end
 
function XEPrimitiveComponent GetMass () end
 
function XEPrimitiveComponent SetMass (f) end
 
function XEPrimitiveComponent GetLinearDamping () end
 
function XEPrimitiveComponent SetLinearDamping (fLinearDamping) end
 
function XEPrimitiveComponent GetAngularDamping () end
 
function XEPrimitiveComponent SetAngularDamping (fAngularDamping) end
 
function XEPrimitiveComponent GetRigidType () end
 
function XEPrimitiveComponent SetRigidType (nSel) end
 
function XEPrimitiveComponent GetRigidTypeNameList () end
 
function XEPrimitiveComponent IsCCDEnabled () end
 
function XEPrimitiveComponent SetRigidCCDEnabled (bSet) end
 
function XEPrimitiveComponent GetLinearVelocity () end
 
function XEPrimitiveComponent SetLinearVelocity (vVelocity) end
 
function XEPrimitiveComponent GetAngularVelocity () end
 
function XEPrimitiveComponent SetAngularVelocity (vVelocity) end
 

Variables

 XEPrimitiveComponent = {}
 

Function Documentation

◆ Empty()

function XEPrimitiveComponent Empty ( )

清空当前组件及其children的所有实例

Returns
void

◆ EmptyPhysics()

function XEPrimitiveComponent EmptyPhysics ( )

清空当前组件的骨骼物理资源并释放,移除刚体

Returns
void

◆ GetAngularDamping()

function XEPrimitiveComponent GetAngularDamping ( )

获取刚体角速度阻尼

Returns
number

◆ GetAngularVelocity()

function XEPrimitiveComponent GetAngularVelocity ( )

获取刚体角速度

Returns
XVECTOR3

◆ GetLinearDamping()

function XEPrimitiveComponent GetLinearDamping ( )

获取刚体线速度阻尼

Returns
number

◆ GetLinearVelocity()

function XEPrimitiveComponent GetLinearVelocity ( )

获取刚体移动速度

Returns
XVECTOR3

◆ GetMass()

function XEPrimitiveComponent GetMass ( )

获取刚体质量

Returns
number

◆ GetPhysicalAssetPath()

function XEPrimitiveComponent GetPhysicalAssetPath ( )

获取物理资源路径

Returns
string 物理资源路径

◆ GetRigidType()

function XEPrimitiveComponent GetRigidType ( )

获取刚体类型

Returns
number

◆ GetRigidTypeNameList()

function XEPrimitiveComponent GetRigidTypeNameList ( )

获取刚体类型名称列表

Returns
string[] 刚体类型名称列表

◆ GetShapeMaterial() [1/2]

function XEPrimitiveComponent GetShapeMaterial ( shapeMaterial  )

XEPrimitiveComponent_GetShapeMaterial00

Parameters
shapeMaterialXShapeMaterial
Returns
boolean

◆ GetShapeMaterial() [2/2]

function XEPrimitiveComponent GetShapeMaterial ( )

XEPrimitiveComponent_GetShapeMaterial01

Returns
XShapeMaterial
boolean

◆ IsCCDEnabled()

function XEPrimitiveComponent IsCCDEnabled ( )

判断是否启用连续碰撞检测

Returns
boolean

◆ IsGravityEnabled()

function XEPrimitiveComponent IsGravityEnabled ( )

判断刚体是否启用了重力

Returns
boolean

◆ IsLoadedPhysicalRes()

function XEPrimitiveComponent IsLoadedPhysicalRes ( )

判断是否已经加载了物理资源

Returns
boolean

◆ IsSimulatePhysics()

function XEPrimitiveComponent IsSimulatePhysics ( )

判断是否进行物理模拟

Returns
boolean

◆ LoadPhysicalAsset() [1/2]

function XEPrimitiveComponent LoadPhysicalAsset ( pPath  )

加载物理资源

Parameters
pPathstring 资源路径
Returns
boolean 是否成功

◆ LoadPhysicalAsset() [2/2]

function XEPrimitiveComponent LoadPhysicalAsset ( pPath  ,
eType   
)

XEPrimitiveComponent_LoadPhysicalAsset01

Parameters
pPathstring
eTypenumber
Returns
boolean

◆ new()

function XEPrimitiveComponent new ( )

XEPrimitiveComponent_new00

Returns
XEPrimitiveComponent

◆ Release()

function XEPrimitiveComponent Release ( )

释放资源

Returns
void

◆ RemovePhysicalAsset()

function XEPrimitiveComponent RemovePhysicalAsset ( )

移除物理资源

Returns
boolean 是否移除成功

◆ SetAngularDamping()

function XEPrimitiveComponent SetAngularDamping ( fAngularDamping  )

获取刚体角速度阻尼

Parameters
fAngularDampingnumber
Returns
void

◆ SetAngularVelocity()

function XEPrimitiveComponent SetAngularVelocity ( vVelocity  )

设置刚体角速度

Parameters
vVelocityXVECTOR3
Returns
void

◆ SetDeleted()

function XEPrimitiveComponent SetDeleted ( bDelete  )

设置删除状态

Parameters
bDeleteboolean
Returns
void

◆ SetGravityEnabled()

function XEPrimitiveComponent SetGravityEnabled ( bSet  )

设置刚体是否启用重力

Parameters
bSetboolean
Returns
void

◆ SetLinearDamping()

function XEPrimitiveComponent SetLinearDamping ( fLinearDamping  )

设置刚体线速度阻尼

Parameters
fLinearDampingnumber
Returns
void

◆ SetLinearVelocity()

function XEPrimitiveComponent SetLinearVelocity ( vVelocity  )

设置刚体移动速度

Parameters
vVelocityXVECTOR3
Returns
void

◆ SetMass()

function XEPrimitiveComponent SetMass ( )

设置刚体质量

Parameters
fnumber
Returns
void

◆ SetPhysicalAssetPath()

function XEPrimitiveComponent SetPhysicalAssetPath ( szPath  )

设置物理资源路径

Parameters
szPathstring 物理资源路径
Returns
void

◆ SetRigidCCDEnabled()

function XEPrimitiveComponent SetRigidCCDEnabled ( bSet  )

设置是否启用连续碰撞检测

Parameters
bSetboolean
Returns
void

◆ SetRigidType()

function XEPrimitiveComponent SetRigidType ( nSel  )

设置刚体类型

Parameters
nSelnumber
Returns
void

◆ SetShapeMaterial()

function XEPrimitiveComponent SetShapeMaterial ( shapeMaterial  )

XEPrimitiveComponent_SetShapeMaterial00

Parameters
shapeMaterialXShapeMaterial
Returns
void

◆ SetSimulatePhysics()

function XEPrimitiveComponent SetSimulatePhysics ( bSimulate  )

设置是否进行物理模拟

Parameters
bSimulateboolean
Returns
void

Variable Documentation

◆ XEPrimitiveComponent