Shards632
1 year agoMHCP Mentor
v203 typescript updates
Moving this here, for now, as the discord channel is locked.
- some documentation comment expansions/updates
- Some new interfaces like `HorizonReferenceProperty<T>` and `Copyable<T>` to improve the API underpinnings for `HorizonProperty` usage, but seemingly not currently used.
- `TriggerGizmo` got player specific settings with `setWhoCanTrigger()` and `getWhoCanTrigger()` apis.
- `AudioGizmo` pitch range updated to -24 to 24 (from -12 to 12)
- new `Player.focusUI()` API that lets you focus a XS player in on a Custom UI gizmo. Comes with optional `FocusUIOptions`
- `duration` of the transition animation
- `horizontalOffset` (units unspecified?) of the UI in the player's camera view (positive to the right)
- `verticalOffset` (units unspecified?) of the UI in the player's camera view (positive upward)
- `rotation` (in euler angles??? not Quaternion????) of the player's camera view facing the UI (unclear if local or global coordinates
- 'fillPercentage` - the distance from the camera to the UI expressed as a 'percentage of the screen area'.
- - `OrbitCameraOptions` got addtional settings
- `verticalOffset` - upward distance from target position to orbit around instead
- `translationSpeed` - how quickly camera moves. unset is instant. units undefined, likely seconds\
- `rotationSpeed` - how quickly camera rotates, unset is instance. units undefined, likely seconds?
- new `Camera.getCameraModeObjectAs<T>(classType: T-ish): T` where T is one of the camera modes like `FirstPersonCameraMode`, `ThirdPersonCameraMode`, `FixedCameraMode`, `OrbitCameraMode`.
- seems to let you get at and adjust the current camera mode properties (if you know the current camera mode type) without having to set a new whole camera mode.
Note: unfortunately, due to the lack of markdown support in the forums, formatting is a bit bad. Sorry!