|
AR_Engine_SDK
|

Functions | |
| function XShapeMaterial | new () end |
| function XShapeMaterial | new (sf, df, r) end |
| function IXRigidBody | BindPhysicsRes (pRes, bReplace) end |
| @type number More... | |
| function IXRigidBody | GetBaseCoordSpace () end |
| function IXRigidBody | IsSimulate () end |
| function IXRigidBody | SetSimulate (bSet) end |
| function IXRigidBody | GetType () end |
| function IXRigidBody | SetType (eType) end |
| function IXRigidBody | GetMaterial () end |
| function IXRigidBody | SetMaterial (mat) end |
| function IXRigidBody | IsNotifyContact () end |
| function IXRigidBody | SetNotifyContact (bSet) end |
| function IXRigidBody | IsGravityEnabled () end |
| function IXRigidBody | SetGravityEnabled (bSet) end |
| function IXRigidBody | IsCCDEnabled () end |
| function IXRigidBody | SetCCDEnabled (bSet) end |
| function IXRigidBody | GetMass () end |
| function IXRigidBody | SetMass (f) end |
| function IXRigidBody | GetLinearVelocity () end |
| function IXRigidBody | SetLinearVelocity (vVelocity) end |
| function IXRigidBody | GetAngularVelocity () end |
| function IXRigidBody | SetAngularVelocity (vAngle) end |
| function IXRigidBody | GetLinearDamping () end |
| function IXRigidBody | SetLinearDamping (fLinearDamping) end |
| function IXRigidBody | GetAngularDamping () end |
| function IXRigidBody | SetAngularDamping (fAngularDamping) end |
| function IXRigidBody | GetFilterData () end |
| function IXRigidBody | SetFilterData (nFilter) end |
Variables | |
| RAT_STATIC = 0 | |
| RAT_DYNAMIC = 0 | |
| XShapeMaterial = {} | |
| function IXRigidBody BindPhysicsRes | ( | pRes | , |
| bReplace | |||
| ) |
@type number
@type number @type number 为刚体绑定一个物理资源
| pRes | IXPhysicsRes 物理资源 |
| bReplace | boolean 是否替换,如果为xtrue,则会替换原有资源,如果为xfalse,未绑定则绑定,已绑定则不绑定 |
| function IXRigidBody GetAngularDamping | ( | ) |
获取角速度阻尼系数
| function IXRigidBody GetAngularVelocity | ( | ) |
获取刚体角速度(注意:如果未开启模拟,无效)
| function IXRigidBody GetBaseCoordSpace | ( | ) |
获取坐标空间
| function IXRigidBody GetFilterData | ( | ) |
获取碰撞过滤
| function IXRigidBody GetLinearDamping | ( | ) |
获取速度阻尼系数
| function IXRigidBody GetLinearVelocity | ( | ) |
获取刚体移动速度(注意:如果未开启模拟,无效)
| function IXRigidBody GetMass | ( | ) |
获取物体质量,单位kg.
| function IXRigidBody GetMaterial | ( | ) |
获取刚体形状表面材质属性
| function IXRigidBody GetType | ( | ) |
获取类型属性
| function IXRigidBody IsCCDEnabled | ( | ) |
判断是否开启了CCD属性(仅当Type为Dynamic时有效) 注意:高速物体应开启CCD来避免隧穿效应
| function IXRigidBody IsGravityEnabled | ( | ) |
判断是否被重力影响
| function IXRigidBody IsNotifyContact | ( | ) |
判断是否开启了碰撞事件属性 如果开启,则在该物体与其他物体碰撞时调用IXPhysicalSceneEventListener::OnContact
| function IXRigidBody IsSimulate | ( | ) |
判断是否开启了物理模拟属性
| function XShapeMaterial new | ( | ) |
XShapeMaterial_new00
| function XShapeMaterial new | ( | sf | , |
| df | , | ||
| r | |||
| ) |
XShapeMaterial_new01
| sf | number |
| df | number |
| r | number |
| function IXRigidBody SetAngularDamping | ( | fAngularDamping | ) |
设置角速度阻尼系数
| fAngularDamping | number |
| function IXRigidBody SetAngularVelocity | ( | vAngle | ) |
设置刚体角速度(注意:如果未开启模拟,无效)
| vAngle | XVECTOR3 刚体角速度 |
| function IXRigidBody SetCCDEnabled | ( | bSet | ) |
设置是否开启了CCD属性(仅当Type为Dynamic时有效) 注意:高速物体应开启CCD来避免隧穿效应
| bSet | boolean 是否开启CCD属性 |
| function IXRigidBody SetFilterData | ( | nFilter | ) |
设置碰撞过滤
| nFilter | number 碰撞过滤 |
| function IXRigidBody SetGravityEnabled | ( | bSet | ) |
设置是否被重力影响
| bSet | boolean 是否被重力影响 |
| function IXRigidBody SetLinearDamping | ( | fLinearDamping | ) |
设置速度阻尼系数
| fLinearDamping | number 速度阻尼系数[0,X_MAX_FLT32] |
| function IXRigidBody SetLinearVelocity | ( | vVelocity | ) |
设置刚体移动速度(注意:如果未开启模拟,无效)
| vVelocity | XVECTOR3 刚体移动速度 |
| function IXRigidBody SetMass | ( | f | ) |
设置物体质量,单位kg.
| f | number 物体质量.注意,0代表无穷质量。范围:[0,X_MAX_FLT32] |
| function IXRigidBody SetMaterial | ( | mat | ) |
设置刚体形状表面材质属性
| mat | XShapeMaterial 刚体形状表面材质属性 |
| function IXRigidBody SetNotifyContact | ( | bSet | ) |
设置是否开启了碰撞事件属性
| bSet | boolean 是否开启碰撞事件属性 |
| function IXRigidBody SetSimulate | ( | bSet | ) |
设置是否开启物理模拟属性
| bSet | boolean 是否开启物理模拟属性 |
| function IXRigidBody SetType | ( | eType | ) |
设置类型属性
| eType | number 类型属性 |
| RAT_DYNAMIC = 0 |
| RAT_STATIC = 0 |
| XShapeMaterial = {} |
1.8.15