Skip to content

Commit 184f214

Browse files
authored
FlyControls: Derive from Controls. (#29095)
1 parent 7b69002 commit 184f214

File tree

3 files changed

+200
-221
lines changed

3 files changed

+200
-221
lines changed

docs/examples/en/controls/Controls.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ <h3>[method:undefined dispose] ()</h3>
102102
Call this method if you no longer want use to the controls. It frees all internal resources and removes all event listeners.
103103
</p>
104104

105-
<h3>[method:undefined update] ()</h3>
105+
<h3>[method:undefined update] ( [param:Number delta] )</h3>
106106
<p>
107107
Controls should implement this method if they have to update their internal state per simulation step.
108108
</p>
109109

110-
111110
<h2>Source</h2>
112111

113112
<p>

docs/examples/en/controls/FlyControls.html

Lines changed: 5 additions & 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

@@ -54,35 +55,21 @@ <h3>change</h3>
5455

5556
<h2>Properties</h2>
5657

58+
<p>See the base [page:Controls] class for common properties.</p>
59+
5760
<h3>[property:Boolean autoForward]</h3>
5861
<p>
5962
If set to `true`, the camera automatically moves forward (and does not stop) when initially translated. Default is `false`.
6063
</p>
6164

62-
<h3>[property:HTMLDOMElement domElement]</h3>
63-
<p>
64-
The HTMLDOMElement used to listen for mouse / touch events. This must be passed in the constructor; changing it here will
65-
not set up new event listeners.
66-
</p>
67-
6865
<h3>[property:Boolean dragToLook]</h3>
6966
<p>
7067
If set to `true`, you can only look around by performing a drag interaction. Default is `false`.
7168
</p>
7269

73-
<h3>[property:Boolean enabled]</h3>
74-
<p>
75-
When set to `false`, the controls will not respond to user input. Default is `true`.
76-
</p>
77-
7870
<h3>[property:Number movementSpeed]</h3>
7971
<p>
80-
The movement speed. Default is *1*.
81-
</p>
82-
83-
<h3>[property:Camera object]</h3>
84-
<p>
85-
The camera to be controlled.
72+
The movement speed. Default is `1`.
8673
</p>
8774

8875
<h3>[property:Number rollSpeed]</h3>
@@ -92,20 +79,7 @@ <h3>[property:Number rollSpeed]</h3>
9279

9380
<h2>Methods</h2>
9481

95-
<h3>[method:undefined dispose] ()</h3>
96-
<p>
97-
Should be called if the controls is no longer required.
98-
</p>
99-
100-
<h3>[method:undefined update] ( [param:Number delta] )</h3>
101-
<p>
102-
<p>
103-
[page:Number delta]: Time delta value.
104-
</p>
105-
<p>
106-
Updates the controls. Usually called in the animation loop.
107-
</p>
108-
</p>
82+
<p>See the base [page:Controls] class for common methods.</p>
10983

11084
<h2>Source</h2>
11185

0 commit comments

Comments
 (0)