Controller
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
camera: * |
|
public |
controls: * |
|
public |
element: * |
|
public |
|
|
public |
hud: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
model: * |
|
public |
mouse: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
mouseupevent: * |
|
public |
|
|
public |
plane: * |
|
public |
|
|
public |
scene: * |
|
public |
state: * |
|
public |
three: * |
Method Summary
Public Methods | ||
public |
changeCamera(newCamera: *) |
|
public |
|
|
public |
clickDragged(vec2: *) |
|
public |
clickPressed(vec2: *) |
|
public |
getIntersections(vec2: *, objects: *, filterByNormals: *, onlyVisible: *, recursive: *, linePrecision: *): * |
|
public |
init() |
|
public |
isRotating(): * |
|
public |
itemIntersection(vec2: *, item: *): * |
|
public |
itemLoaded(item: *) |
|
public |
itemRemoved(item: *) |
|
public |
mouseDownEvent(event: *) |
|
public |
mouseMoveEvent(event: *) |
|
public |
mouseToVec3(vec2: *): * |
|
public |
|
|
public |
normalizeVector2(vec2: *): * |
|
public |
onEntry(state: *) |
|
public |
onExit(state: *) |
|
public |
selectedObject(): * |
|
public |
|
|
public |
setSelectedObject(object: *) |
|
public |
showGroundPlane(flag: *) |
|
public |
switchState(newState: *) |
|
public |
|
|
public |
|
Public Constructors
public constructor() source
Public Members
public alternateMouse: * source
public camera: * source
public controls: * source
public element: * source
public hud: * source
public intersectedObject: * source
public itemloadedevent: * source
public itemremovedevent: * source
public model: * source
public mouse: * source
public mousedownevent: * source
public mousemoveevent: * source
public mouseoverObject: * source
public mouseupevent: * source
public plane: * source
public scene: * source
public state: * source
public three: * source
Public Methods
public changeCamera(newCamera: *) source
Params:
Name | Type | Attribute | Description |
newCamera | * |
public checkWallsAndFloors() source
public clickDragged(vec2: *) source
Params:
Name | Type | Attribute | Description |
vec2 | * |
public clickPressed(vec2: *) source
Params:
Name | Type | Attribute | Description |
vec2 | * |
public getIntersections(vec2: *, objects: *, filterByNormals: *, onlyVisible: *, recursive: *, linePrecision: *): * source
Params:
Name | Type | Attribute | Description |
vec2 | * | ||
objects | * | ||
filterByNormals | * | ||
onlyVisible | * | ||
recursive | * | ||
linePrecision | * |
Return:
* |
public init() source
public itemIntersection(vec2: *, item: *): * source
Params:
Name | Type | Attribute | Description |
vec2 | * | ||
item | * |
Return:
* |
public itemLoaded(item: *) source
Params:
Name | Type | Attribute | Description |
item | * |
public itemRemoved(item: *) source
Params:
Name | Type | Attribute | Description |
item | * |
public mouseDownEvent(event: *) source
Params:
Name | Type | Attribute | Description |
event | * |
public mouseMoveEvent(event: *) source
Params:
Name | Type | Attribute | Description |
event | * |
public mouseUpEvent() source
public onEntry(state: *) source
Params:
Name | Type | Attribute | Description |
state | * |
public onExit(state: *) source
Params:
Name | Type | Attribute | Description |
state | * |
public setGroundPlane() source
public setSelectedObject(object: *) source
Params:
Name | Type | Attribute | Description |
object | * |
public showGroundPlane(flag: *) source
Params:
Name | Type | Attribute | Description |
flag | * |
public switchState(newState: *) source
Params:
Name | Type | Attribute | Description |
newState | * |