vrapeutic / EllieTale-WebXR

VRapeutic's Ellie Tale - WebXR Version
https://vrapeutic.github.io/docs/ellie-tale-vr-module-description
GNU General Public License v3.0
7 stars 2 forks source link

Add NavMesh and obstacles for environments' elements #15

Open hadeergamal1 opened 3 years ago

hadeergamal1 commented 3 years ago

Our characters noah and Ellie are walking around through three environments with different elements we wanna make their movements real but when they hit a tree or other character they pass through them

Ellie-problem

To Reproduce

So, We could use Navigation Mesh A-Frame Inspector Plugin

A plugin for the A-Frame Inspector, allowing creation of a navigation mesh while from an existing A-Frame scene. This plugin should not be used at runtime in the live scene, but only during scene creation.

Create your scene Use this plugin to create and test a navigation mesh Export the navigation mesh as a glTF or JSON file Load the final navigation mesh into your scene as a normal model

A navigation mesh which helps AI agents navigate, and is one way of constraining first-person controls and VR teleportation within a playable area. For information about using a navigation mesh in A-Frame, see Pathfinding documentation in A-Frame Extras.

Expected behavior

When Ellie or noah hit any element in the environment they can't pass through them and find anther path to reach their target