Forum Discussion

Shards632's avatar
Shards632
Mentor
8 months ago

v209 typescript updates

  • some sort of internal reorganization of HorizonProperty type with a Cached version that seems used to caching some bridge call values during the frame
  • a new Bounds class that gives the center, extents, min, max, and size of of a bounding box
  • new Entity.getRenderBounds() that returns a world axis aligned bounding box for the visually rendered elements of an entity
  • new Entity,getPhysicsBounds() that returns a world axis aligned bounding box for the collider (i.e. physical) bounds of an entity.
  • notes on Player.locomotionSpeed bounds of 0-45 m/s
  • new WorldInventory.grantItemToPlayer() api that allows you to give a player an IWP (via sku) without them having to purchase it. Great for provisioning up a player's inventory, or giving out freebies for in-game bonuses!
  • new WorldInventory.getPlayerEntitlementQuantity() api to find out how many of an IWP item (by sku) a player has.
  • new Camera.forceLookAt() api, Camera.stopForceLookAt() api, and Camera.isForceLookAtCamera property.
    • forces the AttachCamera, OrbitCamera, and FollowCamera to temporarily look at a Player, Entity, or position.
    • has various transition options like duration, delay, easing, etc.
  • lots of documentation updates in the ui module.