File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ export interface SpatialControlsOptions {
4848/**
4949 * Spatial controls for 3D translation and rotation.
5050 *
51- * This class emits events of type {@link EVENT_UPDATE} when the position or quaternion is changed.
52- *
5351 * @group Core
5452 */
5553
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export class Input<T = unknown> {
4949 _value : T ;
5050
5151 /**
52- * @see {@link modifers }
52+ * @see {@link modifiers }
5353 */
5454
5555 _modifiers : number ;
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ export * from "./KeyCode.js";
33export * from "./Modifier.js" ;
44export * from "./PointerBehavior.js" ;
55export * from "./PointerButton.js" ;
6+ export * from "./WheelRotation.js" ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export class CollisionManager extends EventDispatcher<CollisionManagerEventMap>
4949 private readonly transformation : TransformationData ;
5050
5151 /**
52- * Custom constraints for the { @link position} and { @link target} .
52+ * Custom constraints.
5353 */
5454
5555 readonly constraints : Set < Constraint < Vector3 > > ;
@@ -58,7 +58,6 @@ export class CollisionManager extends EventDispatcher<CollisionManagerEventMap>
5858 * Colliders to consider for collision tests.
5959 *
6060 * @experimental
61- * @todo NYI
6261 */
6362
6463 private readonly colliders : Set < Collider > ;
@@ -86,7 +85,7 @@ export class CollisionManager extends EventDispatcher<CollisionManagerEventMap>
8685 * @param transformation - The transformation data.
8786 */
8887
89- constructor ( settings : Settings , transformation : TransformationData ) {
88+ constructor ( settings = new Settings ( ) , transformation = new TransformationData ( ) ) {
9089
9190 super ( ) ;
9291
Original file line number Diff line number Diff line change 11import { BaseEvent } from "three" ;
2- import { BaseEventMap } from "../core/BaseEventMap.js" ;
32import { ActionEvent } from "../events/ActionEvent.js" ;
43import { MovementEvent } from "../events/MovementEvent.js" ;
54
@@ -9,7 +8,7 @@ import { MovementEvent } from "../events/MovementEvent.js";
98 * @group Managers
109 */
1110
12- export interface InputManagerEventMap extends BaseEventMap {
11+ export interface InputManagerEventMap {
1312
1413 /**
1514 * Indicates that a specific action was activated.
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export class RotationManager extends EventDispatcher<RotationManagerEventMap>
104104 * @param transformation - The transformation data.
105105 */
106106
107- constructor ( settings : Settings , transformation : TransformationData ) {
107+ constructor ( settings = new Settings ( ) , transformation = new TransformationData ( ) ) {
108108
109109 super ( ) ;
110110
@@ -614,9 +614,7 @@ export class RotationManager extends EventDispatcher<RotationManagerEventMap>
614614 /**
615615 * Synchronizes the internal state with external changes.
616616 *
617- * @param previousPosition - The previous position.
618- * @param previousQuaternion - The previous quaternion.
619- * @param previousTarget - The previous target.
617+ * @param previousTransformation - The previous transformation.
620618 */
621619
622620 synchronize ( previousTransformation : TransformationData ) : void {
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export class TranslationManager extends EventDispatcher<TranslationManagerEventM
122122 * @param transformation - The transformation data.
123123 */
124124
125- constructor ( settings : Settings , transformation : TransformationData ) {
125+ constructor ( settings = new Settings ( ) , transformation = new TransformationData ( ) ) {
126126
127127 super ( ) ;
128128
Original file line number Diff line number Diff line change 11export * from "./CollisionManager.js" ;
2+ export * from "./CollisionManagerEventMap.js" ;
23export * from "./InputManager.js" ;
34export * from "./InputManagerEventMap.js" ;
45export * from "./MovementState.js" ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class GeneralSettings extends EventDispatcher<SettingsEventMap> {
5454 /**
5555 * The control mode.
5656 *
57- * @defaultValue { @link ControlMode.FIRST_PERSON }
57+ * @defaultValue "first-person"
5858 */
5959
6060 get mode ( ) : ControlMode {
You can’t perform that action at this time.
0 commit comments