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

#include <X2DPhysicalContact.h>

类 X2DPhysicalContact 继承关系图:
Inheritance graph

函数

function X2DPhysicalContact GetWorldManifold () end
 
function X2DPhysicalContact GetManifold () end
 
function X2DPhysicalContact GetContactImpulse () end
 
function X2DPhysicalContact SetEnabled (xelua_var_29) end
 
function X2DPhysicalContact IsTouching () end
 
function X2DPhysicalContact SetTangentSpeed (xelua_var_30) end
 
function X2DPhysicalContact GetTangentSpeed () end
 
function X2DPhysicalContact SetFriction (xelua_var_31) end
 
function X2DPhysicalContact GetFriction () end
 
function X2DPhysicalContact ResetFriction () end
 
function X2DPhysicalContact SetRestitution (xelua_var_32) end
 
function X2DPhysicalContact GetRestitution () end
 
function X2DPhysicalContact ResetRestitution () end
 

变量

 X2DWorldManifold = {}
 
X2DWorldManifold points = {}
 @type XVECTOR2[]
 
X2DWorldManifold separations = {}
 @type number[]
 
X2DWorldManifold normal = {}
 @type XVECTOR2
 
 X2DManifoldPoint = {}
 
X2DManifoldPoint localPoint = {}
 @type XVECTOR2
 
X2DManifoldPoint normalImpulse = 0
 @type number
 
X2DManifoldPoint tangentImpulse = 0
 @type number
 
 X2DManifold = {}
 
X2DManifold type = 0
 @type number
 
X2DManifold localNormal = {}
 @type XVECTOR2
 
 X2DContactImpulse = {}
 
X2DContactImpulse normalImpulses = {}
 @type number[]
 
X2DContactImpulse tangentImpulses = {}
 @type number[]
 
 X2DPhysicalContact = {}
 

函数说明

◆ GetContactImpulse()

function X2DPhysicalContact GetContactImpulse ( )

获取冲量信息 注:这个信息只有在 PostSolve 回调中才能获取到

返回
X2DContactImpulse

◆ GetFriction()

function X2DPhysicalContact GetFriction ( )

获取当前摩擦力系数

返回
number

◆ GetManifold()

function X2DPhysicalContact GetManifold ( )

获取本地(局部)坐标系下的碰撞信息。

返回
X2DManifold

◆ GetRestitution()

function X2DPhysicalContact GetRestitution ( )

获取当前恢复系数

返回
number

◆ GetTangentSpeed()

function X2DPhysicalContact GetTangentSpeed ( )

获取切线速度

返回
number

◆ GetWorldManifold()

function X2DPhysicalContact GetWorldManifold ( )

获取世界坐标系下的碰撞信息。

返回
X2DWorldManifold

◆ IsTouching()

function X2DPhysicalContact IsTouching ( )

返回碰撞体是否已经接触到

返回
boolean

◆ ResetFriction()

function X2DPhysicalContact ResetFriction ( )

重置摩擦力系数到默认值

返回
void

◆ ResetRestitution()

function X2DPhysicalContact ResetRestitution ( )

重置恢复系数到默认值

返回
void

◆ SetEnabled()

function X2DPhysicalContact SetEnabled ( xelua_var_29  )

X2DPhysicalContact_SetEnabled00

参数
xelua_var_29boolean
返回
void

◆ SetFriction()

function X2DPhysicalContact SetFriction ( xelua_var_31  )

覆盖默认的摩擦力系数。可以在 onPreSolve 回调中调用此函数。

参数
xelua_var_31number
返回
void

◆ SetRestitution()

function X2DPhysicalContact SetRestitution ( xelua_var_32  )

覆盖默认的恢复系数。可以在 onPreSolve 回调中调用此函数。

参数
xelua_var_32number
返回
void

◆ SetTangentSpeed()

function X2DPhysicalContact SetTangentSpeed ( xelua_var_30  )

为传送带设置期望的切线速度

参数
xelua_var_30number
返回
void

变量说明

◆ localNormal

X2DManifold localNormal = {}

@type XVECTOR2

◆ localPoint

X2DManifold localPoint = {}

@type XVECTOR2

◆ normal

X2DWorldManifold normal = {}

@type XVECTOR2

◆ normalImpulse

X2DManifoldPoint normalImpulse = 0

@type number

◆ normalImpulses

X2DContactImpulse normalImpulses = {}

@type number[]

◆ points

X2DManifold points = {}

@type XVECTOR2[]

@type XArray<X2DManifoldPoint>

◆ separations

X2DWorldManifold separations = {}

@type number[]

◆ tangentImpulse

X2DManifoldPoint tangentImpulse = 0

@type number

◆ tangentImpulses

X2DContactImpulse tangentImpulses = {}

@type number[]

◆ type

X2DManifold type = 0

@type number

◆ X2DContactImpulse

◆ X2DManifold

◆ X2DManifoldPoint

◆ X2DPhysicalContact

◆ X2DWorldManifold