AR_Engine_SDK
|
#include <X2DRigidBodyComponent.h>
变量 | |
X2DRigidBodyComponent = {} | |
function X2DRigidBodyComponent ApplyAngularImpulse | ( | impulse | , |
wake | |||
) |
function X2DRigidBodyComponent ApplyForce | ( | force | , |
point | , | ||
wake | |||
) |
function X2DRigidBodyComponent ApplyForceToCenter | ( | force | , |
wake | |||
) |
function X2DRigidBodyComponent ApplyLinearImpulse | ( | impulse | , |
point | , | ||
wake | |||
) |
function X2DRigidBodyComponent ApplyLinearImpulseToCenter | ( | impulse | , |
wake | |||
) |
function X2DRigidBodyComponent ApplyTorque | ( | torque | , |
wake | |||
) |
function X2DRigidBodyComponent Create | ( | pNode | ) |
创建一个X2DRigidBodyComponent布局组件
pNode | XUINode 目标节点 |
function X2DRigidBodyComponent GetAngularDamping | ( | ) |
X2DRigidBodyComponent_GetAngularDamping00
function X2DRigidBodyComponent GetAngularVelocity | ( | ) |
X2DRigidBodyComponent_GetAngularVelocity00
function X2DRigidBodyComponent GetBodyType | ( | ) |
X2DRigidBodyComponent_GetBodyType00
function X2DRigidBodyComponent GetFixedRotation | ( | ) |
X2DRigidBodyComponent_GetFixedRotation00
function X2DRigidBodyComponent GetGravityScale | ( | ) |
X2DRigidBodyComponent_GetGravityScale00
function X2DRigidBodyComponent GetInertia | ( | ) |
获取刚体本地坐标系下原点的旋转惯性
function X2DRigidBodyComponent GetLinearDamping | ( | ) |
X2DRigidBodyComponent_GetLinearDamping00
function X2DRigidBodyComponent GetLinearVelocity | ( | ) |
X2DRigidBodyComponent_GetLinearVelocity00
function X2DRigidBodyComponent GetLinearVelocityFromWorldPoint | ( | vLinearVelocity | ) |
function X2DRigidBodyComponent GetLinearVelocityFromWorldPos | ( | worldPoint | ) |
function X2DRigidBodyComponent GetLocalCenter | ( | ) |
Get the local position of the center of mass. 获取刚体本地坐标系下的质心
function X2DRigidBodyComponent GetLocalPosition | ( | worldPos | ) |
function X2DRigidBodyComponent GetLocalVector | ( | worldVector | ) |
function X2DRigidBodyComponent GetMass | ( | ) |
获取刚体的质量。
function X2DRigidBodyComponent GetPhysicalScene | ( | ) |
X2DRigidBodyComponent_GetPhysicalScene00
function X2DRigidBodyComponent GetRigidBody | ( | ) |
X2DRigidBodyComponent_GetRigidBody00
function X2DRigidBodyComponent GetWorldCenter | ( | ) |
获取刚体世界坐标系下的质心
function X2DRigidBodyComponent GetWorldPosition | ( | ) |
获取刚体世界坐标系下的原点值
function X2DRigidBodyComponent GetWorldPosition | ( | localdPos | ) |
function X2DRigidBodyComponent GetWorldRotation | ( | ) |
获取刚体世界坐标系下的旋转值。
function X2DRigidBodyComponent GetWorldVector | ( | localVector | ) |
function X2DRigidBodyComponent IsActive | ( | ) |
X2DRigidBodyComponent_IsActive00
function X2DRigidBodyComponent IsAllowSleep | ( | ) |
X2DRigidBodyComponent_IsAllowSleep00
function X2DRigidBodyComponent IsAwake | ( | ) |
获取唤醒状态
function X2DRigidBodyComponent IsBullet | ( | ) |
获取是否为Bullet类型
function X2DRigidBodyComponent IsEnabledContactListener | ( | ) |
X2DRigidBodyComponent_IsEnabledContactListener00
function X2DRigidBodyComponent ResetVelocity | ( | ) |
X2DRigidBodyComponent_ResetVelocity00
function X2DRigidBodyComponent SetActive | ( | bActive | ) |
是否禁止此刚体进行旋转 设置刚体的激活状态。一个非激活状态下的刚体是不会被模拟和碰撞的,不管它是否处于睡眠状态下。 如果刚体处于激活状态下,所有夹具会被添加到 粗测阶段(broad-phase)。 如果刚体处于非激活状态下,所有夹具会被从 粗测阶段(broad-phase)中移除。 在非激活状态下的夹具不会参与到碰撞,射线,或者查找中 链接到非激活状态下刚体的关节也是非激活的。
bActive | boolean |
function X2DRigidBodyComponent SetAllowSleep | ( | bAllowSleep | ) |
function X2DRigidBodyComponent SetAngularDamping | ( | fAngularDamping | ) |
Angular damping 用于衰减刚体的角速度。衰减系数可以大于 1,但是当衰减系数比较大的时候,衰减的效果会变得比较敏感。
fAngularDamping | number |
function X2DRigidBodyComponent SetAngularVelocity | ( | fAngularVelocity | ) |
function X2DRigidBodyComponent SetAwake | ( | flag | ) |
function X2DRigidBodyComponent SetBeginContactListener | ( | callback | ) |
@manual xelua_XEngine_X2DRigidBodyComponent_SetBeginContactListener_manual X2DRigidBodyComponent_SetBeginContactListener_manual
callback | ContactFunc |
function X2DRigidBodyComponent SetBodyType | ( | eType | ) |
function X2DRigidBodyComponent SetBullet | ( | flag | ) |
function X2DRigidBodyComponent SetEnabledContactListener | ( | bEnable | ) |
X2DRigidBodyComponent_SetEnabledContactListener00
bEnable | boolean |
function X2DRigidBodyComponent SetEndContactListener | ( | callback | ) |
@manual xelua_XEngine_X2DRigidBodyComponent_SetEndContactListener_manual X2DRigidBodyComponent_SetEndContactListener_manual
callback | ContactFunc |
function X2DRigidBodyComponent SetFixedRotation | ( | bFixedRotation | ) |
function X2DRigidBodyComponent SetGravityScale | ( | fGravityScale | ) |
function X2DRigidBodyComponent SetLinearDamping | ( | fLinearDamping | ) |
Linear damping 用于衰减刚体的线性速度。衰减系数可以大于 1,但是当衰减系数比较大的时候,衰减的效果会变得比较敏感。
fLinearDamping | number |
function X2DRigidBodyComponent SetLinearVelocity | ( | ) |
刚体在世界坐标下的线性速度。
function X2DRigidBodyComponent SetLinearVelocity | ( | vLinearVelocity | ) |
function X2DRigidBodyComponent SetPostSolveListener | ( | callback | ) |
@manual xelua_XEngine_X2DRigidBodyComponent_SetPostSolveListener_manual X2DRigidBodyComponent_SetPostSolveListener_manual
callback | ContactFunc |
function X2DRigidBodyComponent SetPreSolveListener | ( | callback | ) |
@manual xelua_XEngine_X2DRigidBodyComponent_SetPreSolveListener_manual X2DRigidBodyComponent_SetPreSolveListener_manual
callback | ContactFunc |
function X2DRigidBodyComponent SyncPosition | ( | ) |
同步节点的世界坐标到 box2d 刚体的坐标上。
function X2DRigidBodyComponent SyncRotation | ( | ) |
同步节点的世界旋转角度值到 box2d 刚体的旋转值上。