Обучение
Модул
Getting started with 3D object interaction - Training
This course will provide steps and procedures to follow on how to manipulate and interact with 3D objects.
Този браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
An object that tracks when the local avatar enters and exits its trigger volume.
[Required Component] Collider: A Collider is required to know what the trigger volume is. This should have IsTrigger set to true.
To ensure that an avatar moves along smoothly with a moving object, you can add an AvatarAnchor component to the object. Two instances where this would be useful are moving the avatar along a zipline or in an elevator. Movement can occur both locally and for other avatars’ views across the network.
An object that the avatar will anchor to when they’re inside the object’s trigger volume so that the avatar moves along with the object. Inherits from AvatarTrigger. Networked avatars will anchor as well so movement is smooth across the network. Any number of players can be anchored to a single object.
[Required Component] Collider: A Collider is required to know what the trigger volume is. This should have IsTrigger set to true.
If you want an avatar to be attached to an object that’s stationary (for example, a seat or podium) or one that has various settings for locomotion, you could add an AvatarTether component. This “tethers” the avatar to the object. AvatarTethers first transport the local avatar to their location (this is a one-time position change), and then follow the tether settings you’ve chosen to restrict movement while the avatar is tethered. Only one avatar at a time can be tethered.
A MeshInteractableBody can attach an OnStateChanged node to its OnSelected property that calls the TetherLocalAvatar method on an AvatarTether to tether an avatar. The AvatarTether could have its tether located on the same object as a moving AvatarAnchor so the avatar will start moving along with that object as soon as they’re tethered. At the end of the anchor's journey you could have an AvatarTrigger that untethers the avatar from its anchor object when they reach the zone; they are then free to move about as they please.
Script to make an object always face the camera.
Обучение
Модул
Getting started with 3D object interaction - Training
This course will provide steps and procedures to follow on how to manipulate and interact with 3D objects.
Документация
Add interactive games, activities and objects - Microsoft Mesh
Learn how to add interactive games, activities and objects provided in the Toybox package.
Create avatar spawn and Travel Points - Microsoft Mesh
Learn how to create points that an avatar will spawn to or travel to when using teleportation.
Hold objects realistically with Equippables - Microsoft Mesh
Learn about various equippable objects and the realistic ways they can be picked up and held.