PhysicsBase
Extended by
Implements
Constructors
new PhysicsBase()
new PhysicsBase(
app
):PhysicsBase
Parameters
• app: Application
<any
>
Returns
Source
Properties
_factory
_factory:
IPhysicsFactory
Source
Accessors
add
get
add():IPhysicsAddFactory
Returns
Source
container
set
container(value
):void
Parameters
• value: Container
<Application
<any
>>
Source
debug
get
debug():boolean
set
debug(value
):void
Parameters
• value: boolean
Returns
boolean
Source
factory
get
factory():IPhysicsFactory
Returns
Source
Methods
addToWorld()
addToWorld(
body
):void
Parameters
• body: any
Returns
void
Source
destroy()
destroy():
void
Returns
void
Source
init()
init(
_autoStart
,_debug
,_autoCreateBounds
?,_engineOptions
?):void
Initializes the physics engine
Parameters
• _autoStart: boolean
• _debug: boolean
• _autoCreateBounds?: boolean
• _engineOptions?: any
Returns
void
Implementation of
Source
removeFromWorld()
removeFromWorld(
body
):void
Parameters
• body: any
Returns
void
Source
update()
update(
pDeltaTime
):void
Parameters
• pDeltaTime: number
Returns
void