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

#include <IXSkeletalBody.h>

类 IXSkeletalBody 继承关系图:
Inheritance graph

函数

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
 

变量

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

函数说明

◆ AttachShape()

function IXSkeletalBody AttachShape ( ShapeElem  )

给当前刚体添加形状

参数
ShapeElemXSphylShapeElem 添加的形状信息
返回
void

◆ DebugDraw() [1/2]

function IXSkeletalBody DebugDraw ( pModelIns  )

IXSkeletalBody_DebugDraw00

参数
pModelInsIXModelInstance
返回
void

◆ DebugDraw() [2/2]

function IXSkeletalBody DebugDraw ( pModelIns  ,
Color   
)

IXSkeletalBody_DebugDraw01

参数
pModelInsIXModelInstance
ColorXCOLORBASE
返回
void

◆ DetachAllShapes()

function IXSkeletalBody DetachAllShapes ( )

清空形状数据

返回
void

◆ GetAngularDamping()

function IXSkeletalBody GetAngularDamping ( )

获取刚体角速度阻尼

返回
number

◆ GetBoneName()

function IXSkeletalBody GetBoneName ( )

获取骨头名称

返回
string 骨头名称字符串

◆ GetDensity()

function IXSkeletalBody GetDensity ( )

IXSkeletalBody_GetDensity00

返回
number

◆ GetFilterData()

function IXSkeletalBody GetFilterData ( )

获取碰撞过滤

返回
number 默认是0xFFFF

◆ GetLinearDamping()

function IXSkeletalBody GetLinearDamping ( )

获取刚体线速度阻尼

返回
number

◆ GetLinearVelocity()

function IXSkeletalBody GetLinearVelocity ( )

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

返回
XVECTOR3 刚体移动速度

◆ GetMaterial()

function IXSkeletalBody GetMaterial ( )

获取刚体形状表面材质

返回
XShapeMaterial 刚体形状表面材质

◆ GetPhysicsBlendWeight()

function IXSkeletalBody GetPhysicsBlendWeight ( )

获取物理融合权重

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

◆ GetShapes()

function IXSkeletalBody GetShapes ( )

获取所有形状

返回
XSphylShapeElem[] 所有形状数组

◆ IsGravityEnabled()

function IXSkeletalBody IsGravityEnabled ( )

判断刚体是否启用了重力

返回
boolean

◆ IsKinematic()

function IXSkeletalBody IsKinematic ( )

获取是否为Kinematic类型

返回
boolean 是否为Kinematic类型

◆ IsSimulatePhysics()

function IXSkeletalBody IsSimulatePhysics ( )

判断是否开启模拟物理

返回
boolean 是否开启模拟物理

◆ new()

function XSphylShapeElem new ( )

XSphylShapeElem_new00

返回
XSphylShapeElem

◆ SetAngularDamping()

function IXSkeletalBody SetAngularDamping ( fAngularDamping  )

获取刚体角速度阻尼

参数
fAngularDampingnumber
返回
void

◆ SetDensity()

function IXSkeletalBody SetDensity ( fDensity  )

IXSkeletalBody_SetDensity00

参数
fDensitynumber
返回
void

◆ SetFilterData()

function IXSkeletalBody SetFilterData ( nFilter  )

设置碰撞过滤

参数
nFilternumber 碰撞过滤
返回
void

◆ SetGravityEnabled()

function IXSkeletalBody SetGravityEnabled ( bSet  )

设置刚体是否启用重力

参数
bSetboolean
返回
void

◆ SetKinematic()

function IXSkeletalBody SetKinematic ( bSet  )

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

参数
bSetboolean true:设置为Kinematic类型;false:设置为非Kinematic类型
返回
void

◆ SetKinematicTransform()

function IXSkeletalBody SetKinematicTransform ( matrix  )

设置Kinematic物体的变换矩阵

参数
matrixXMATRIX4
返回
void

◆ SetLinearDamping()

function IXSkeletalBody SetLinearDamping ( fLinearDamping  )

设置刚体线速度阻尼

参数
fLinearDampingnumber
返回
void

◆ SetLinearVelocity()

function IXSkeletalBody SetLinearVelocity ( vVelocity  )

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

参数
vVelocityXVECTOR3 刚体移动速度
返回
void

◆ SetMaterial()

function IXSkeletalBody SetMaterial ( mat  )

设置刚体形状表面材质

参数
matXShapeMaterial 刚体形状表面材质
返回
void

◆ SetPhysicsBlendWeight()

function IXSkeletalBody SetPhysicsBlendWeight ( fPhysicsBlendWeight  )

设置物理融合权重

参数
fPhysicsBlendWeightnumber 物理融合权重(xfloat32类型)
返回
void

◆ SetShape()

function IXSkeletalBody SetShape ( nShapeIndex  ,
ShapeElem   
)

设置某个对应索引的形状

参数
nShapeIndexnumber 形状索引
ShapeElemXSphylShapeElem 形状信息
返回
void

◆ SetSimulatePhysics()

function IXSkeletalBody SetSimulatePhysics ( bSimulatePhysics  )

设置是否开启模拟物理

参数
bSimulatePhysicsboolean 是否开启模拟物理
返回
void

变量说明

◆ 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