Forum Discussion

Shards632's avatar
Shards632
MHCP Mentor
1 year ago

v204 typescript updates

v204 typescript updates:

  • various minor documentation updates/refinements
  • Player.rotation property comments clarify it to be just the head rotation in world coords
  • Player.rootRotation read/write property! You can now rotate the player
    • this rotates the whole player, not their head
    • you can only rotate around the Y axis, so player always remains upright
  • Player.setGripPoseAnimationByName() now takes PlayerGripPoseAnimationOptions
    • callback - a callback called when animation state changes
      • returns an AnimationCallbackReason of Starting or Stopping
  • PanCameraMode got some additional properties (that seemed missing last week to work with then new Camera.getCameraModeObjectAs<T> api)
    • positionOffset - offset from target its looking at
    • translationSpeed - update tracking speed

1 Reply

Replies have been turned off for this discussion
  • Tried using player.rootRotation.set() and it seems to only work while I am pressing the WASD keys. Haven't tried in VR. Are you experiencing the same thing?