Spacetime-Meta / spacetime-sdk

The spacetime-sdk is a turnkey virtual environment package for building in the Spacetime Metaverse
https://www.spacetimemeta.io/metaverse/spawn-planet
MIT License
11 stars 2 forks source link

[Feature]: Introduce interactive items #174

Closed Liquid-Blocks closed 2 years ago

Liquid-Blocks commented 2 years ago

Overview

When building complex worlds, it is important to be able to detect individual mesh in the terrain's GLB file in order to apply custom logic to it.

Specifications

When in blender, you can now change the name of your items to star with _stm_ so that the sdk will detect it and add it to the updatable list.

Premade interactive items:

  1. _stm_spawnPoint_: This is an empty item. Once the terrain is loaded, the players spawn point will be set to this location instead of 0,0,0
  2. _stm_startTime: This is a box geometry. This will activate the timer when the player steps on the platform.
  3. _stm_stopTime: This is a box geometry. This will stop the timer when the player steps on the platform.
  4. _stm_launchpad: This is a box geometry. This will activate and launch the player as 50m/s when stepped on.

Anything else?

No response