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

Functions

function XSphylShapeElem new () end
 
function IXSkeletalBody GetBoneName () end
 
function IXSkeletalBody IsSimulatePhysics () end
 
function IXSkeletalBody SetSimulatePhysics (bSimulatePhysics) end
 
function IXSkeletalBody GetPhysicsBlendWeight () end
 
function IXSkeletalBody SetPhysicsBlendWeight (fPhysicsBlendWeight) end
 
function IXSkeletalBody GetMaterial () end
 
function IXSkeletalBody SetMaterial (mat) end
 
function IXSkeletalBody IsGravityEnabled () end
 
function IXSkeletalBody SetGravityEnabled (bSet) end
 
function IXSkeletalBody GetDensity () end
 
function IXSkeletalBody SetDensity (fDensity) end
 
function IXSkeletalBody GetLinearDamping () end
 
function IXSkeletalBody SetLinearDamping (fLinearDamping) end
 
function IXSkeletalBody GetAngularDamping () end
 
function IXSkeletalBody SetAngularDamping (fAngularDamping) end
 
function IXSkeletalBody SetLinearVelocity (vVelocity) end
 
function IXSkeletalBody GetLinearVelocity () end
 
function IXSkeletalBody SetKinematic (bSet) end
 
function IXSkeletalBody IsKinematic () end
 
function IXSkeletalBody SetKinematicTransform (matrix) end
 
function IXSkeletalBody GetFilterData () end
 
function IXSkeletalBody SetFilterData (nFilter) end
 
function IXSkeletalBody AttachShape (ShapeElem) end
 
function IXSkeletalBody DetachAllShapes () end
 
function IXSkeletalBody GetShapes () end
 
function IXSkeletalBody SetShape (nShapeIndex, ShapeElem) end
 
function IXSkeletalBody DebugDraw (pModelIns) end
 
function IXSkeletalBody DebugDraw (pModelIns, Color) end
 

Variables

 XSphylShapeElem = {}
 
XSphylShapeElem vCenter = {}
 @type XVECTOR3 More...
 
XSphylShapeElem qRotation = {}
 @type XQUATERNION More...
 
XSphylShapeElem fRadius = 0
 @type number More...
 
XSphylShapeElem fLength = 0
 @type number Cylinder height More...
 

Function Documentation

◆ AttachShape()

function IXSkeletalBody AttachShape ( ShapeElem  )

给当前刚体添加形状

Parameters
ShapeElemXSphylShapeElem 添加的形状信息
Returns
void

◆ DebugDraw() [1/2]

function IXSkeletalBody DebugDraw ( pModelIns  )

IXSkeletalBody_DebugDraw00

Parameters
pModelInsIXModelInstance
Returns
void

◆ DebugDraw() [2/2]

function IXSkeletalBody DebugDraw ( pModelIns  ,
Color   
)

IXSkeletalBody_DebugDraw01

Parameters
pModelInsIXModelInstance
ColorXCOLORBASE
Returns
void

◆ DetachAllShapes()

function IXSkeletalBody DetachAllShapes ( )

清空形状数据

Returns
void

◆ GetAngularDamping()

function IXSkeletalBody GetAngularDamping ( )

获取刚体角速度阻尼

Returns
number

◆ GetBoneName()

function IXSkeletalBody GetBoneName ( )

获取骨头名称

Returns
string 骨头名称字符串

◆ GetDensity()

function IXSkeletalBody GetDensity ( )

IXSkeletalBody_GetDensity00

Returns
number

◆ GetFilterData()

function IXSkeletalBody GetFilterData ( )

获取碰撞过滤

Returns
number 默认是0xFFFF

◆ GetLinearDamping()

function IXSkeletalBody GetLinearDamping ( )

获取刚体线速度阻尼

Returns
number

◆ GetLinearVelocity()

function IXSkeletalBody GetLinearVelocity ( )

获取刚体移动速度(注意:如果未开启模拟,无效)

Returns
XVECTOR3 刚体移动速度

◆ GetMaterial()

function IXSkeletalBody GetMaterial ( )

获取刚体形状表面材质

Returns
XShapeMaterial 刚体形状表面材质

◆ GetPhysicsBlendWeight()

function IXSkeletalBody GetPhysicsBlendWeight ( )

获取物理融合权重

Returns
number 物理融合权重(xfloat32类型)

◆ GetShapes()

function IXSkeletalBody GetShapes ( )

获取所有形状

Returns
XSphylShapeElem[] 所有形状数组

◆ IsGravityEnabled()

function IXSkeletalBody IsGravityEnabled ( )

判断刚体是否启用了重力

Returns
boolean

◆ IsKinematic()

function IXSkeletalBody IsKinematic ( )

获取是否为Kinematic类型

Returns
boolean 是否为Kinematic类型

◆ IsSimulatePhysics()

function IXSkeletalBody IsSimulatePhysics ( )

判断是否开启模拟物理

Returns
boolean 是否开启模拟物理

◆ new()

function XSphylShapeElem new ( )

XSphylShapeElem_new00

Returns
XSphylShapeElem

◆ SetAngularDamping()

function IXSkeletalBody SetAngularDamping ( fAngularDamping  )

获取刚体角速度阻尼

Parameters
fAngularDampingnumber
Returns
void

◆ SetDensity()

function IXSkeletalBody SetDensity ( fDensity  )

IXSkeletalBody_SetDensity00

Parameters
fDensitynumber
Returns
void

◆ SetFilterData()

function IXSkeletalBody SetFilterData ( nFilter  )

设置碰撞过滤

Parameters
nFilternumber 碰撞过滤
Returns
void

◆ SetGravityEnabled()

function IXSkeletalBody SetGravityEnabled ( bSet  )

设置刚体是否启用重力

Parameters
bSetboolean
Returns
void

◆ SetKinematic()

function IXSkeletalBody SetKinematic ( bSet  )

设置是否为Kinematic类型,不受场景中其他物体影响,可以被用户控制并影响其他物体

Parameters
bSetboolean true:设置为Kinematic类型;false:设置为非Kinematic类型
Returns
void

◆ SetKinematicTransform()

function IXSkeletalBody SetKinematicTransform ( matrix  )

设置Kinematic物体的变换矩阵

Parameters
matrixXMATRIX4
Returns
void

◆ SetLinearDamping()

function IXSkeletalBody SetLinearDamping ( fLinearDamping  )

设置刚体线速度阻尼

Parameters
fLinearDampingnumber
Returns
void

◆ SetLinearVelocity()

function IXSkeletalBody SetLinearVelocity ( vVelocity  )

设置刚体移动速度(注意:如果未开启模拟,无效)

Parameters
vVelocityXVECTOR3 刚体移动速度
Returns
void

◆ SetMaterial()

function IXSkeletalBody SetMaterial ( mat  )

设置刚体形状表面材质

Parameters
matXShapeMaterial 刚体形状表面材质
Returns
void

◆ SetPhysicsBlendWeight()

function IXSkeletalBody SetPhysicsBlendWeight ( fPhysicsBlendWeight  )

设置物理融合权重

Parameters
fPhysicsBlendWeightnumber 物理融合权重(xfloat32类型)
Returns
void

◆ SetShape()

function IXSkeletalBody SetShape ( nShapeIndex  ,
ShapeElem   
)

设置某个对应索引的形状

Parameters
nShapeIndexnumber 形状索引
ShapeElemXSphylShapeElem 形状信息
Returns
void

◆ SetSimulatePhysics()

function IXSkeletalBody SetSimulatePhysics ( bSimulatePhysics  )

设置是否开启模拟物理

Parameters
bSimulatePhysicsboolean 是否开启模拟物理
Returns
void

Variable Documentation

◆ fLength

XSphylShapeElem fLength = 0

@type number Cylinder height

◆ fRadius

XSphylShapeElem fRadius = 0

@type number

◆ qRotation

XSphylShapeElem qRotation = {}

@type XQUATERNION

◆ vCenter

XSphylShapeElem vCenter = {}

@type XVECTOR3

◆ XSphylShapeElem