AR_Engine_SDK
Functions | Variables
IXPhysicsScene.lua File Reference
类 IXPhysicalSceneEventListener 继承关系图:
Inheritance graph
类 IXPhysicsScene 继承关系图:
Inheritance graph

Functions

function IXPhysicsScene GetName () end
 
function IXPhysicsScene AddCloth (pCloth) end
 
function IXPhysicsScene AddCloth (aCloth) end
 
function IXPhysicsScene RemoveCloth (pCloth) end
 
function IXPhysicsScene AddRigidBody (pRigidBody) end
 
function IXPhysicsScene RemoveRigidBody (pRigidBody) end
 
function IXPhysicsScene Tick (fTime) end
 
function IXPhysicsScene Render (pScene) end
 
function IXPhysicsScene AddEventListener (pListener) end
 
function IXPhysicsScene RemoveEventListener (pListener) end
 
function IXPhysicsScene GetGravity () end
 
function IXPhysicsScene SetGravity (vGravity) end
 

Variables

 IXPhysicsScene = {}
 

Function Documentation

◆ AddCloth() [1/2]

function IXPhysicsScene AddCloth ( pCloth  )

将布料添加到场景中

Parameters
pClothIXCloth pCloth布料指针
Returns
boolean 失败情况:布料已添加到其他场景

◆ AddCloth() [2/2]

function IXPhysicsScene AddCloth ( aCloth  )

将一组布料添加到场景中

Parameters
aClothIXCloth[] aCloth布料数组
Returns
boolean 任意一个布料添加失败返回xfalse

◆ AddEventListener()

function IXPhysicsScene AddEventListener ( pListener  )

为场景添加监听器

Parameters
pListenerIXPhysicalSceneEventListener
Returns
void

◆ AddRigidBody()

function IXPhysicsScene AddRigidBody ( pRigidBody  )

将一个刚体添加到场景中

Parameters
pRigidBodyIXRigidBody pRigidBody刚体指针
Returns
boolean 失败情况:刚体已添加到其他场景

◆ GetGravity()

function IXPhysicsScene GetGravity ( )

获取场景重力参数,并返回

Returns
XVECTOR3

◆ GetName()

function IXPhysicsScene GetName ( )

获取物理场景名称

Returns
string

◆ RemoveCloth()

function IXPhysicsScene RemoveCloth ( pCloth  )

将布料从场景中移除

Parameters
pClothIXCloth pCloth布料指针
Returns
void

◆ RemoveEventListener()

function IXPhysicsScene RemoveEventListener ( pListener  )

移除监听器

Parameters
pListenerIXPhysicalSceneEventListener
Returns
void

◆ RemoveRigidBody()

function IXPhysicsScene RemoveRigidBody ( pRigidBody  )

将刚体从场景中移除

Parameters
pRigidBodyIXRigidBody pRigidBody刚体指针
Returns
void

◆ Render()

function IXPhysicsScene Render ( pScene  )

Render场景中的布料

Parameters
pSceneIXRenderSet
Returns
void

◆ SetGravity()

function IXPhysicsScene SetGravity ( vGravity  )

设置场景重力参数

Parameters
vGravityXVECTOR3
Returns
void

◆ Tick()

function IXPhysicsScene Tick ( fTime  )

更新

Parameters
fTimenumber
Returns
void

Variable Documentation

◆ IXPhysicsScene

IXPhysicsScene = {}