Lance
Concepts
Introduction
Introduction
Prologue
Community
Development Roadmap
Frequently Asked Questions
Overview
Architecture of a Multiplayer Game
Choosing a Physics Engine
Game Engine
Server Engine
Client Engine
Renderer
Game World and Game Objects
Serialization and Communication
Synchronization Methods
Interpolation
Extrapolation
Tutorials
My First Game: Pong
Spaaace
Extras
Fine Tuning and Debugging
Further Reading
API Reference
Classes
AFrameRenderer
draw
init
BaseTypes
CannonPhysicsEngine
ClientEngine
connect
disconnect
sendInput
start
DynamicObject
accelerate
bendingToString
collidesWith
syncTo
toString
turnLeft
turnRight
GameEngine
addObjectToWorld
getPlayerGameOverResult
isOwnedByPlayer
on
once
processInput
registerClasses
removeListener
removeObjectFromWorld
start
step
GameObject
bendingToString
hasComponent
onAddToWorld
onRemoveFromWorld
syncTo
toString
GameWorld
forEachObject
queryObject
queryObjects
KeyboardControls
bindKey
PhysicalObject2D
onAddToWorld
toString
PhysicalObject3D
toString
Quaternion
conjugate
copy
multiply
set
setFromAxisAngle
slerp
toAxisAngle
toString
Renderer
addObject
draw
init
removeObject
runClientStep
stop
Serializer
typeCanAssign
addCustomType
registerClass
ServerEngine
assignObjectToRoom
assignPlayerToRoom
createRoom
gameStatus
SimplePhysicsEngine
ThreeVector
add
clone
copy
getBendingDelta
length
lerp
multiplyScalar
normalize
set
subtract
toString
Trace
TwoVector
add
clone
copy
getBendingDelta
length
lerp
multiplyScalar
normalize
set
subtract
toString
Events
client__postStep
client__preStep
client__processInput
client__roomUpdate
client__slowFrameRate
client__stepReset
client__syncReceived
objectAdded
objectDestroyed
playerDisconnected
playerJoined
postStep
preStep
processInput
server__inputReceived
server__playerDisconnected
server__playerJoined
server__postStep
server__preStep
server__processInput
server__roomUpdate
start
syncReceived
Global
DEFAULT_ROOM_NAME
CannonPhysicsEngine
CannonPhysicsEngine
CannonPhysicsEngine is a three-dimensional lightweight physics engine
Constructor
new CannonPhysicsEngine
()
Source:
physics/CannonPhysicsEngine.js
,
line 9