1 | <?php |
||
29 | class Camera extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Init <a-camera> |
||
34 | * |
||
35 | * The camera primitive places the user somewhere within the scene. It is an entity that prescribes the camera |
||
36 | * component with mappings to controls-related components. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | 3 | public function reset() |
|
46 | |||
47 | /** |
||
48 | * camera.active |
||
49 | * |
||
50 | * @param bool $active |
||
51 | * @return \AframeVR\Extras\Primitives\Camera |
||
52 | */ |
||
53 | 3 | public function active(bool $active) |
|
61 | |||
62 | /** |
||
63 | * camera.far |
||
64 | * |
||
65 | * @param float $far |
||
66 | * @return \AframeVR\Extras\Primitives\Camera |
||
67 | */ |
||
68 | 2 | public function far(float $far) |
|
76 | |||
77 | /** |
||
78 | * camera.fov |
||
79 | * |
||
80 | * @param float $fov |
||
81 | * @return \AframeVR\Extras\Primitives\Camera |
||
82 | */ |
||
83 | 2 | public function fov(float $fov) |
|
91 | |||
92 | /** |
||
93 | * look-controls.enabled |
||
94 | * |
||
95 | * @param bool $look_controls |
||
96 | * @return \AframeVR\Extras\Primitives\Camera |
||
97 | */ |
||
98 | 2 | public function lookControls(bool $look_controls) |
|
106 | |||
107 | /** |
||
108 | * camera.near |
||
109 | * |
||
110 | * @param float $near |
||
111 | * @return \AframeVR\Extras\Primitives\Camera |
||
112 | */ |
||
113 | 2 | public function near(float $near) |
|
121 | |||
122 | /** |
||
123 | * wasd-controls.enabled |
||
124 | * |
||
125 | * @param bool $wasd_controls |
||
126 | * @return \AframeVR\Extras\Primitives\Camera |
||
127 | */ |
||
128 | 2 | public function wasdControls(bool $wasd_controls = true) |
|
136 | |||
137 | /** |
||
138 | * camera.zoom |
||
139 | * |
||
140 | * @param int|float $zoom |
||
|
|||
141 | * @return \AframeVR\Extras\Primitives\Camera |
||
142 | */ |
||
143 | 2 | public function zoom(float $zoom) |
|
151 | |||
152 | /** |
||
153 | * Activate cursor |
||
154 | * |
||
155 | * @return \AframeVR\Extras\Primitives\Camera |
||
156 | */ |
||
157 | 2 | public function cursor() |
|
165 | } |
||
166 | |||
167 |