Skip to content

Commit 0983a1a

Browse files
authored
FirstPersonControls: Derive from Controls. (#29097)
1 parent 184f214 commit 0983a1a

File tree

2 files changed

+176
-194
lines changed

2 files changed

+176
-194
lines changed

docs/examples/en/controls/FirstPersonControls.html

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<link type="text/css" rel="stylesheet" href="page.css" />
88
</head>
99
<body>
10+
[page:Controls] &rarr;
1011

1112
<h1>[name]</h1>
1213

@@ -61,17 +62,6 @@ <h3>[property:Boolean constrainVertical]</h3>
6162
Whether or not looking around is vertically constrained by [[page:.verticalMin], [page:.verticalMax]]. Default is `false`.
6263
</p>
6364

64-
<h3>[property:HTMLDOMElement domElement]</h3>
65-
<p>
66-
The HTMLDOMElement used to listen for mouse / touch events. This must be passed in the constructor; changing it here will
67-
not set up new event listeners.
68-
</p>
69-
70-
<h3>[property:Boolean enabled]</h3>
71-
<p>
72-
Whether or not the controls are enabled. Default is `true`.
73-
</p>
74-
7565
<h3>[property:Number heightCoef]</h3>
7666
<p>
7767
Determines how much faster the camera moves when it's y-component is near [page:.heightMax]. Default is *1*.
@@ -113,11 +103,6 @@ <h3>[property:Number movementSpeed]</h3>
113103
The movement speed. Default is *1*.
114104
</p>
115105

116-
<h3>[property:Camera object]</h3>
117-
<p>
118-
The camera to be controlled.
119-
</p>
120-
121106
<h3>[property:Number verticalMax]</h3>
122107
<p>
123108
How far you can vertically look around, upper limit. Range is 0 to Math.PI radians. Default is `Math.PI`.
@@ -130,11 +115,6 @@ <h3>[property:Number verticalMin]</h3>
130115

131116
<h2>Methods</h2>
132117

133-
<h3>[method:undefined dispose] ()</h3>
134-
<p>
135-
Should be called if the controls is no longer required.
136-
</p>
137-
138118
<h3>[method:undefined handleResize] ()</h3>
139119
<p>
140120
Should be called if the application window is resized.
@@ -156,16 +136,6 @@ <h3>[method:FirstPersonControls lookAt]( [param:Vector3 vector] )<br />
156136
</p>
157137
</p>
158138

159-
<h3>[method:undefined update] ( [param:Number delta] )</h3>
160-
<p>
161-
<p>
162-
[page:Number delta]: Time delta value.
163-
</p>
164-
<p>
165-
Updates the controls. Usually called in the animation loop.
166-
</p>
167-
</p>
168-
169139
<h2>Source</h2>
170140

171141
<p>

0 commit comments

Comments
 (0)