Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:22

Class enchant.gl.physics.PhyScene3D

Class Summary
Constructor Attributes Constructor Name and Description
 
Scene3D containing World.
Fields borrowed from class enchant.gl.Scene3D:
backgroundColor, childNodes, lights

Method Summary

Method Attributes Method Name and Description
 
addChild(Sprite3D)
Add child Sprite3D.
 
play()
Begin World time progress.
 
removeChild(Sprite3D)
Delete designated child Sprite3D.
 
setGravity(gx, gy, gz)
Set the gravity of World containing PhyScene3D.
 
stepSimulation(timeStep, maxSubSteps, fixedTimeStep)
Proceed forward in time for World containing PhySprite3D.
 
stop()
Stop World time progress.
Methods borrowed from class enchant.gl.Scene3D:
addLight
getAmbientLight
getCamera
getDirectionalLight
removeLight
setAmbientLight
setCamera
setDirectionalLight
Methods borrowed from class enchant.EventTarget:
addEventListener
clearEventListener
dispatchEvent
on
removeEventListener

Class Detail

enchant.gl.physics.PhyScene3D()
Scene3D containing World. As time passes, physical calculation will be applied to the Sprite3D effected by addChild.
See:
enchant.gl.physics.World

Method Detail

  • addChild(Sprite3D)
    Add child Sprite3D. When adding PhySprite3D, the rigid body object containing PhySprite3D will be added to the World containing PhyScene3D.
    Parameters:
    {enchant.gl.Sprite3D|enchant.gl.physics.PhySprite3D} Sprite3D
    Child Sprite3D to be added.
  • play()
    Begin World time progress. Ever other enterframe, stepSimulation will be automaticall called up.
  • removeChild(Sprite3D)
    Delete designated child Sprite3D. When PhySprite3D is set, the rigid body object containing PhySprite3D will be deleted from the World containing PhyScene3D.
    Parameters:
    {enchant.gl.Sprite3D|enchant.gl.physics.PhySprite3D} Sprite3D
    追加する子Sprite3D.
  • setGravity(gx, gy, gz)
    Set the gravity of World containing PhyScene3D.
    Parameters:
    {Number} gx
    x axis gravity
    {Number} gy
    y axis gravity
    {Number} gz
    z axis gravity
  • stepSimulation(timeStep, maxSubSteps, fixedTimeStep)
    Proceed forward in time for World containing PhySprite3D.
    Parameters:
    {Number} timeStep
    Amount of time you wish to proceed. Units are seconds.
    {Number} maxSubSteps
    {Number} fixedTimeStep
  • stop()
    Stop World time progress.