SinglePlanarProcess

Create a single player game in a Planar

Constructor

new SinglePlanarProcess(gameObject3D, frame3DPlanar, assetManageropt, inputManageropt, options)

Parameters:
NameTypeAttributesDescription
gameObject3DObject3D

root game object3D of your game

frame3DPlanarPlanar

frame3DPlanar where the game is taking place

assetManagerAssetManager<optional>

assetManager of the game AssetManager

inputManagerInputManager<optional>

input manager of the game InputManager

optionsobject

single player game planar options

Properties
NameTypeAttributesDescription
gameScriptClassObject.<string, ScriptBase><optional>

custom game scripts class of your object3D

externalGameScriptClassObject.<string, ExternalScriptBase><optional>

custom external scripts class of your object3D

interpolatorDelaynumber<optional>

delay between state computed in game process and the ones in external context

Classes

SinglePlanarProcess

Members

assetManager :AssetManager

asset manager

externalGameContext :ExternalContext

render audio external script context

Type:
  • ExternalContext

frame3DPlanar :Planar

game view

Type:
  • Planar

gameContext :Context

game script + collision context

Type:

inputManager :InputManager

input manager

interpolator :StateInterpolator

interpolator to smooth comminucation between the two process

Type:
  • StateInterpolator

process :RequestAnimationFrameProcess

Type:
  • RequestAnimationFrameProcess

Methods

start() → {Promise}

Returns:
  • promise resolving when game has started
Type: 
Promise