AR_Engine_SDK
|
#include <X2DPhysicalContact.h>
函数 | |
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 = {} | |
function X2DPhysicalContact GetContactImpulse | ( | ) |
获取冲量信息 注:这个信息只有在 PostSolve 回调中才能获取到
function X2DPhysicalContact GetFriction | ( | ) |
获取当前摩擦力系数
function X2DPhysicalContact GetManifold | ( | ) |
获取本地(局部)坐标系下的碰撞信息。
function X2DPhysicalContact GetRestitution | ( | ) |
获取当前恢复系数
function X2DPhysicalContact GetTangentSpeed | ( | ) |
获取切线速度
function X2DPhysicalContact GetWorldManifold | ( | ) |
获取世界坐标系下的碰撞信息。
function X2DPhysicalContact IsTouching | ( | ) |
返回碰撞体是否已经接触到
function X2DPhysicalContact ResetFriction | ( | ) |
重置摩擦力系数到默认值
function X2DPhysicalContact ResetRestitution | ( | ) |
重置恢复系数到默认值
function X2DPhysicalContact SetEnabled | ( | xelua_var_29 | ) |
X2DPhysicalContact_SetEnabled00
xelua_var_29 | boolean |
function X2DPhysicalContact SetFriction | ( | xelua_var_31 | ) |
覆盖默认的摩擦力系数。可以在 onPreSolve 回调中调用此函数。
xelua_var_31 | number |
function X2DPhysicalContact SetRestitution | ( | xelua_var_32 | ) |
覆盖默认的恢复系数。可以在 onPreSolve 回调中调用此函数。
xelua_var_32 | number |
function X2DPhysicalContact SetTangentSpeed | ( | xelua_var_30 | ) |
为传送带设置期望的切线速度
xelua_var_30 | number |
X2DManifold localNormal = {} |
@type XVECTOR2
X2DManifold localPoint = {} |
@type XVECTOR2
X2DWorldManifold normal = {} |
@type XVECTOR2
X2DManifoldPoint normalImpulse = 0 |
@type number
X2DContactImpulse normalImpulses = {} |
@type number[]
X2DManifold points = {} |
@type XVECTOR2[]
@type XArray<X2DManifoldPoint>
X2DWorldManifold separations = {} |
@type number[]
X2DManifoldPoint tangentImpulse = 0 |
@type number
X2DContactImpulse tangentImpulses = {} |
@type number[]
X2DManifold type = 0 |
@type number
X2DContactImpulse = {} |
X2DManifold = {} |
X2DManifoldPoint = {} |
X2DPhysicalContact = {} |
X2DWorldManifold = {} |