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

#include <IX2DJoint.h>

类 X2DJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DRevoluteJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DPrismaticJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DDistanceJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DPulleyJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DMouseJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DGearJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DWheelJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DWeldJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DFrictionJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DRopeJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 X2DMotorJointDesc 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DRevoluteJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DPrismaticJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DDistanceJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DPulleyJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DMouseJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DGearJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DWheelJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DWeldJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DFrictionJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DRopeJoint 继承关系图:
Inheritance graph

#include <IX2DJoint.h>

类 IX2DMotorJoint 继承关系图:
Inheritance graph

函数

function X2DJointDesc new () end
 
function X2DRevoluteJointDesc Init (pA, pB, vAnchor) end
 
function X2DPrismaticJointDesc Init (pA, pB, vAnchor, vAxis) end
 
function X2DDistanceJointDesc Init (pA, pB, vAnchorA, vAnchorB) end
 
function X2DPulleyJointDesc Init (pA, pB, vGAnchorA, vGAnchorB, vAnchorA, vAnchorB, ratio) end
 
function X2DMotorJointDesc Init (pA, pB) end
 
function IX2DJoint GetType () end
 
function IX2DJoint GetBodyA () end
 
function IX2DJoint GetBodyB () end
 
function IX2DJoint GetUserData () end
 
function IX2DJoint SetUserData (pUserData) end
 
function IX2DJoint IsActive () end
 
function IX2DJoint GetAnchorA () end
 
function IX2DJoint GetAnchorB () end
 
function IX2DJoint GetReactionForce (inv_dt) end
 
function IX2DJoint GetReactionTorque (inv_dt) end
 
function IX2DRevoluteJoint GetLocalAnchorA () end
 
function IX2DRevoluteJoint GetLocalAnchorB () end
 
function IX2DRevoluteJoint GetReferenceAngle () end
 
function IX2DRevoluteJoint GetJointAngle () end
 
function IX2DRevoluteJoint GetJointSpeed () end
 
function IX2DRevoluteJoint IsLimitEnabled () end
 
function IX2DRevoluteJoint EnableLimit (flag) end
 
function IX2DRevoluteJoint GetLowerLimit () end
 
function IX2DRevoluteJoint GetUpperLimit () end
 
function IX2DRevoluteJoint SetLimits (lower, upper) end
 
function IX2DRevoluteJoint IsMotorEnabled () end
 
function IX2DRevoluteJoint EnableMotor (flag) end
 
function IX2DRevoluteJoint SetMotorSpeed (speed) end
 
function IX2DRevoluteJoint GetMotorSpeed () end
 
function IX2DRevoluteJoint SetMaxMotorTorque (torque) end
 
function IX2DRevoluteJoint GetMaxMotorTorque () end
 
function IX2DPrismaticJoint GetLocalAxisA () end
 
function IX2DPrismaticJoint GetJointTranslation () end
 
function IX2DPrismaticJoint SetMaxMotorForce (force) end
 
function IX2DPrismaticJoint GetMaxMotorForce () end
 
function IX2DPrismaticJoint GetMotorForce (inv_dt) end
 
function IX2DDistanceJoint SetLength (length) end
 
function IX2DDistanceJoint GetLength () end
 
function IX2DDistanceJoint SetFrequency (hz) end
 
function IX2DDistanceJoint GetFrequency () end
 
function IX2DDistanceJoint SetDampingRatio (ratio) end
 
function IX2DDistanceJoint GetDampingRatio () end
 
function IX2DPulleyJoint GetGroundAnchorA () end
 
function IX2DPulleyJoint GetGroundAnchorB () end
 
function IX2DPulleyJoint GetLengthA () end
 
function IX2DPulleyJoint GetLengthB () end
 
function IX2DPulleyJoint GetRatio () end
 
function IX2DPulleyJoint GetCurrentLengthA () end
 
function IX2DPulleyJoint GetCurrentLengthB () end
 
function IX2DMouseJoint SetTarget (target) end
 
function IX2DMouseJoint GetTarget () end
 
function IX2DMouseJoint SetMaxForce (force) end
 
function IX2DMouseJoint GetMaxForce () end
 
function IX2DGearJoint GetJointA () end
 
function IX2DGearJoint GetJointB () end
 
function IX2DGearJoint SetRatio (fRatio) end
 
function IX2DWheelJoint GetJointLinearSpeed () end
 
function IX2DWheelJoint GetJointAngularSpeed () end
 
function IX2DWheelJoint GetMotorTorque (inv_dt) end
 
function IX2DWheelJoint SetSpringFrequencyHz (hz) end
 
function IX2DWheelJoint GetSpringFrequencyHz () end
 
function IX2DWheelJoint SetSpringDampingRatio (ratio) end
 
function IX2DWheelJoint GetSpringDampingRatio () end
 
function IX2DFrictionJoint SetMaxTorque (torque) end
 
function IX2DFrictionJoint GetMaxTorque () end
 
function IX2DRopeJoint SetMaxLength (length) end
 
function IX2DRopeJoint GetMaxLength () end
 
function IX2DMotorJoint SetLinearOffset (linearOffset) end
 
function IX2DMotorJoint GetLinearOffset () end
 
function IX2DMotorJoint SetAngularOffset (angularOffset) end
 
function IX2DMotorJoint GetAngularOffset () end
 
function IX2DMotorJoint SetCorrectionFactor (factor) end
 
function IX2DMotorJoint GetCorrectionFactor () end
 

变量

 X_2DPHYSICS_JT_UNKNOWN = 0
 
 X_2DPHYSICS_JT_REVOLUTE = 0
 
 X_2DPHYSICS_JT_PRISMATIC = 0
 
 X_2DPHYSICS_JT_DISTANCE = 0
 
 X_2DPHYSICS_JT_PULLEY = 0
 
 X_2DPHYSICS_JT_MOUSE = 0
 
 X_2DPHYSICS_JT_GEAR = 0
 
 X_2DPHYSICS_JT_WHEEL = 0
 
 X_2DPHYSICS_JT_WELD = 0
 
 X_2DPHYSICS_JT_FRICTION = 0
 
 X_2DPHYSICS_JT_ROPE = 0
 
 X_2DPHYSICS_JT_MOTOR = 0
 
 X2DJointDesc = {}
 

函数说明

◆ EnableLimit()

function IX2DPrismaticJoint EnableLimit ( flag  )

请参考描述类

参数
flagboolean
返回
void

◆ EnableMotor()

function IX2DWheelJoint EnableMotor ( flag  )

请参考描述类

参数
flagboolean
返回
void

◆ GetAnchorA()

function IX2DJoint GetAnchorA ( )

获取关节在刚体A上的锚点

返回
XVECTOR2 锚点位置

◆ GetAnchorB()

function IX2DJoint GetAnchorB ( )

获取关节在刚体B上的锚点

返回
XVECTOR2 锚点位置

◆ GetAngularOffset()

function IX2DMotorJoint GetAngularOffset ( )

请参考描述类

返回
number

◆ GetBodyA()

function IX2DJoint GetBodyA ( )

获取关节连接的刚体A

返回
IX2DRigidBody 刚体A

◆ GetBodyB()

function IX2DJoint GetBodyB ( )

获取关节连接的刚体B

返回
IX2DRigidBody 刚体B

◆ GetCorrectionFactor()

function IX2DMotorJoint GetCorrectionFactor ( )

请参考描述类

返回
number

◆ GetCurrentLengthA()

function IX2DPulleyJoint GetCurrentLengthA ( )

请参考描述类

返回
number

◆ GetCurrentLengthB()

function IX2DPulleyJoint GetCurrentLengthB ( )

请参考描述类

返回
number

◆ GetDampingRatio()

function IX2DWeldJoint GetDampingRatio ( )

请参考描述类

返回
number

◆ GetFrequency()

function IX2DWeldJoint GetFrequency ( )

请参考描述类

返回
number

◆ GetGroundAnchorA()

function IX2DPulleyJoint GetGroundAnchorA ( )

请参考描述类

返回
XVECTOR2

◆ GetGroundAnchorB()

function IX2DPulleyJoint GetGroundAnchorB ( )

请参考描述类

返回
XVECTOR2

◆ GetJointA()

function IX2DGearJoint GetJointA ( )

请参考描述类

返回
IX2DJoint

◆ GetJointAngle()

function IX2DWheelJoint GetJointAngle ( )

请参考描述类

返回
number

◆ GetJointAngularSpeed()

function IX2DWheelJoint GetJointAngularSpeed ( )

请参考描述类

返回
number

◆ GetJointB()

function IX2DGearJoint GetJointB ( )

请参考描述类

返回
IX2DJoint

◆ GetJointLinearSpeed()

function IX2DWheelJoint GetJointLinearSpeed ( )

请参考描述类

返回
number

◆ GetJointSpeed()

function IX2DPrismaticJoint GetJointSpeed ( )

请参考描述类

返回
number

◆ GetJointTranslation()

function IX2DWheelJoint GetJointTranslation ( )

请参考描述类

返回
number

◆ GetLength()

function IX2DDistanceJoint GetLength ( )

请参考描述类

返回
number

◆ GetLengthA()

function IX2DPulleyJoint GetLengthA ( )

请参考描述类

返回
number

◆ GetLengthB()

function IX2DPulleyJoint GetLengthB ( )

请参考描述类

返回
number

◆ GetLinearOffset()

function IX2DMotorJoint GetLinearOffset ( )

请参考描述类

返回
XVECTOR2

◆ GetLocalAnchorA()

function IX2DRopeJoint GetLocalAnchorA ( )

请参考描述类

返回
XVECTOR2

◆ GetLocalAnchorB()

function IX2DRopeJoint GetLocalAnchorB ( )

请参考描述类

返回
XVECTOR2

◆ GetLocalAxisA()

function IX2DWheelJoint GetLocalAxisA ( )

请参考描述类

返回
XVECTOR2

◆ GetLowerLimit()

function IX2DPrismaticJoint GetLowerLimit ( )

请参考描述类

返回
number

◆ GetMaxForce()

function IX2DMotorJoint GetMaxForce ( )

请参考描述类

返回
number

◆ GetMaxLength()

function IX2DRopeJoint GetMaxLength ( )

请参考描述类

返回
number

◆ GetMaxMotorForce()

function IX2DPrismaticJoint GetMaxMotorForce ( )

请参考描述类

返回
number

◆ GetMaxMotorTorque()

function IX2DWheelJoint GetMaxMotorTorque ( )

请参考描述类

返回
number

◆ GetMaxTorque()

function IX2DMotorJoint GetMaxTorque ( )

请参考描述类

返回
number

◆ GetMotorForce()

function IX2DPrismaticJoint GetMotorForce ( inv_dt  )

请参考描述类

参数
inv_dtnumber
返回
number

◆ GetMotorSpeed()

function IX2DWheelJoint GetMotorSpeed ( )

请参考描述类

返回
number

◆ GetMotorTorque()

function IX2DWheelJoint GetMotorTorque ( inv_dt  )

请参考描述类

参数
inv_dtnumber
返回
number

◆ GetRatio()

function IX2DGearJoint GetRatio ( )

请参考描述类

返回
number

◆ GetReactionForce()

function IX2DJoint GetReactionForce ( inv_dt  )

获取关节的力大小

参数
inv_dtnumber
返回
XVECTOR2

◆ GetReactionTorque()

function IX2DJoint GetReactionTorque ( inv_dt  )

获取关节的扭矩

参数
inv_dtnumber
返回
number 扭矩

◆ GetReferenceAngle()

function IX2DWeldJoint GetReferenceAngle ( )

请参考描述类

返回
number

◆ GetSpringDampingRatio()

function IX2DWheelJoint GetSpringDampingRatio ( )

请参考描述类

返回
number

◆ GetSpringFrequencyHz()

function IX2DWheelJoint GetSpringFrequencyHz ( )

请参考描述类

返回
number

◆ GetTarget()

function IX2DMouseJoint GetTarget ( )

请参考描述类

返回
XVECTOR2

◆ GetType()

function IX2DJoint GetType ( )

返回关节类型

返回
number 关节类型

◆ GetUpperLimit()

function IX2DPrismaticJoint GetUpperLimit ( )

请参考描述类

返回
number

◆ GetUserData()

function IX2DJoint GetUserData ( )

获取用户自定义数据

返回
userdata 用户自定义数据

◆ Init() [1/5]

function X2DMotorJointDesc Init ( pA  ,
pB   
)

初始化一个X2DRevoluteJointDesc

参数
pAIX2DRigidBody 刚体B
pBIX2DRigidBody
返回
boolean 成功返回xtrue,失败返回xfalse

◆ Init() [2/5]

function X2DFrictionJointDesc Init ( pA  ,
pB  ,
vAnchor   
)

初始化一个X2DRevoluteJointDesc

参数
pAIX2DRigidBody 刚体B
pBIX2DRigidBody
vAnchorXVECTOR2 连接锚点
返回
boolean 成功返回xtrue,失败返回xfalse

◆ Init() [3/5]

function X2DWheelJointDesc Init ( pA  ,
pB  ,
vAnchor  ,
vAxis   
)

初始化一个X2DRevoluteJointDesc

参数
pAIX2DRigidBody 刚体B
pBIX2DRigidBody
vAnchorXVECTOR2 连接锚点
vAxisXVECTOR2
返回
boolean 成功返回xtrue,失败返回xfalse

◆ Init() [4/5]

function X2DDistanceJointDesc Init ( pA  ,
pB  ,
vAnchorA  ,
vAnchorB   
)

初始化一个X2DRevoluteJointDesc

参数
pAIX2DRigidBody 刚体B
pBIX2DRigidBody
vAnchorAXVECTOR2
vAnchorBXVECTOR2 连接锚点
返回
boolean 成功返回xtrue,失败返回xfalse

◆ Init() [5/5]

function X2DPulleyJointDesc Init ( pA  ,
pB  ,
vGAnchorA  ,
vGAnchorB  ,
vAnchorA  ,
vAnchorB  ,
ratio   
)

初始化一个X2DRevoluteJointDesc

参数
pAIX2DRigidBody 刚体B
pBIX2DRigidBody
vGAnchorAXVECTOR2
vGAnchorBXVECTOR2
vAnchorAXVECTOR2
vAnchorBXVECTOR2 连接锚点
rationumber
返回
boolean 成功返回xtrue,失败返回xfalse

◆ IsActive()

function IX2DJoint IsActive ( )

是否激活

返回
boolean

◆ IsLimitEnabled()

function IX2DPrismaticJoint IsLimitEnabled ( )

请参考描述类

返回
boolean

◆ IsMotorEnabled()

function IX2DWheelJoint IsMotorEnabled ( )

请参考描述类

返回
boolean

◆ new()

function X2DJointDesc new ( )

X2DJointDesc_new00

返回
X2DJointDesc

X2DRevoluteJointDesc_new00

返回
X2DRevoluteJointDesc

X2DPrismaticJointDesc_new00

返回
X2DPrismaticJointDesc

X2DDistanceJointDesc_new00

返回
X2DDistanceJointDesc

X2DPulleyJointDesc_new00

返回
X2DPulleyJointDesc

X2DMouseJointDesc_new00

返回
X2DMouseJointDesc

X2DGearJointDesc_new00

返回
X2DGearJointDesc

X2DWheelJointDesc_new00

返回
X2DWheelJointDesc

X2DWeldJointDesc_new00

返回
X2DWeldJointDesc

X2DFrictionJointDesc_new00

返回
X2DFrictionJointDesc

X2DRopeJointDesc_new00

返回
X2DRopeJointDesc

X2DMotorJointDesc_new00

返回
X2DMotorJointDesc

◆ SetAngularOffset()

function IX2DMotorJoint SetAngularOffset ( angularOffset  )

请参考描述类

参数
angularOffsetnumber
返回
void

◆ SetCorrectionFactor()

function IX2DMotorJoint SetCorrectionFactor ( factor  )

请参考描述类

参数
factornumber
返回
void

◆ SetDampingRatio()

function IX2DWeldJoint SetDampingRatio ( ratio  )

请参考描述类

参数
rationumber
返回
void

◆ SetFrequency()

function IX2DWeldJoint SetFrequency ( hz  )

请参考描述类

参数
hznumber
返回
void

◆ SetLength()

function IX2DDistanceJoint SetLength ( length  )

请参考描述类

参数
lengthnumber
返回
void

◆ SetLimits()

function IX2DPrismaticJoint SetLimits ( lower  ,
upper   
)

请参考描述类

参数
lowernumber
uppernumber
返回
void

◆ SetLinearOffset()

function IX2DMotorJoint SetLinearOffset ( linearOffset  )

请参考描述类

参数
linearOffsetXVECTOR2
返回
void

◆ SetMaxForce()

function IX2DMotorJoint SetMaxForce ( force  )

请参考描述类

参数
forcenumber
返回
void

◆ SetMaxLength()

function IX2DRopeJoint SetMaxLength ( length  )

请参考描述类

参数
lengthnumber
返回
void

◆ SetMaxMotorForce()

function IX2DPrismaticJoint SetMaxMotorForce ( force  )

请参考描述类

参数
forcenumber
返回
void

◆ SetMaxMotorTorque()

function IX2DWheelJoint SetMaxMotorTorque ( torque  )

请参考描述类

参数
torquenumber
返回
void

◆ SetMaxTorque()

function IX2DMotorJoint SetMaxTorque ( torque  )

请参考描述类

参数
torquenumber
返回
void

◆ SetMotorSpeed()

function IX2DWheelJoint SetMotorSpeed ( speed  )

请参考描述类

参数
speednumber
返回
void

◆ SetRatio()

function IX2DGearJoint SetRatio ( fRatio  )

请参考描述类

参数
fRationumber
返回
void

◆ SetSpringDampingRatio()

function IX2DWheelJoint SetSpringDampingRatio ( ratio  )

请参考描述类

参数
rationumber
返回
void

◆ SetSpringFrequencyHz()

function IX2DWheelJoint SetSpringFrequencyHz ( hz  )

请参考描述类

参数
hznumber
返回
void

◆ SetTarget()

function IX2DMouseJoint SetTarget ( target  )

请参考描述类

参数
targetXVECTOR2
返回
void

◆ SetUserData()

function IX2DJoint SetUserData ( pUserData  )

设置用户自定义数据

参数
pUserDatauserdata
返回
void

变量说明

◆ X2DJointDesc

◆ X_2DPHYSICS_JT_DISTANCE

X_2DPHYSICS_JT_DISTANCE = 0

◆ X_2DPHYSICS_JT_FRICTION

X_2DPHYSICS_JT_FRICTION = 0

◆ X_2DPHYSICS_JT_GEAR

X_2DPHYSICS_JT_GEAR = 0

◆ X_2DPHYSICS_JT_MOTOR

X_2DPHYSICS_JT_MOTOR = 0

◆ X_2DPHYSICS_JT_MOUSE

X_2DPHYSICS_JT_MOUSE = 0

◆ X_2DPHYSICS_JT_PRISMATIC

X_2DPHYSICS_JT_PRISMATIC = 0

◆ X_2DPHYSICS_JT_PULLEY

X_2DPHYSICS_JT_PULLEY = 0

◆ X_2DPHYSICS_JT_REVOLUTE

X_2DPHYSICS_JT_REVOLUTE = 0

◆ X_2DPHYSICS_JT_ROPE

X_2DPHYSICS_JT_ROPE = 0

◆ X_2DPHYSICS_JT_UNKNOWN

X_2DPHYSICS_JT_UNKNOWN = 0

◆ X_2DPHYSICS_JT_WELD

X_2DPHYSICS_JT_WELD = 0

◆ X_2DPHYSICS_JT_WHEEL

X_2DPHYSICS_JT_WHEEL = 0