Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR rewrites the sit/animate interaction system. The new system utilises the metadata in GLTF models to create more detailed interaction targets that don't require meshes.
The GLTF metadata contains the following properties:
vircadia_sit_[n]_position
"0,0,0"
vircadia_sit_[n]_rotation
"0,0,0"
vircadia_sit_[n]_exit_position
"0,0,0"
vircadia_sit_[n]_text
"Hello World"
vircadia_sit_[n]_icon
"chair"
text
property.vircadia_sit_[n]_color
"#ff0000"
vircadia_sit_[n]_label_distance
2
vircadia_sit_[n]_animation
"sit_default"
The new system is also backwards-compatible with the old mesh-based system, so meshes with the name
animate_...
will still create interaction targets. One benefit of the old system is that - because interaction targets were attached to meshes - they themselves could be moved/animated. For example, attaching a target to the seat of a roller-coaster would pull the avatar along with the coaster. The new metadata-based system does not yet support this.