Description
class FreeCamera extends TargetCamera
Constructor
new FreeCamera(name, position, scene)
Parameters
|
Name |
Type |
Description |
|
name |
string |
|
|
position |
Vector3 |
|
|
scene |
Scene |
|
Members
ellipsoidOffset : Vector3
checkCollisions : boolean
applyGravity : boolean
angularSensibility : number
keysUp : number[]
keysDown : number[]
keysLeft : number[]
keysRight : number[]
onCollide : (collidedMesh: AbstractMesh) => void
Parameters
collisionMask : number
Methods
attachControl(element, noPreventDefault) → void
Parameters
|
Name |
Type |
Description |
|
element |
HTMLElement |
|
optional |
noPreventDefault |
boolean |
|
detachControl(element) → void
Parameters
|
Name |
Type |
Description |
|
element |
HTMLElement |
|
dispose() → void
getClassName() → string