Thursday, October 20, 2022
HomeGame DevelopmentPoints with Unity NavMesh Hyperlinks Throughout Runtime

Points with Unity NavMesh Hyperlinks Throughout Runtime


I am fairly new to gamedev, so please bear with me.

So the tip aim right here is to have some platforms that spawn in, and the participant has to remain on the platforms to remain alive, whereas an enemy roams all the display screen (Unaffected by gravity), making an attempt to kill/knock the participant off the platforms.

The present setup I’ve is every platform has a NavMesh, and 4 hyperlinks (1 per aspect). The NavMesh is re-baked at any time when a brand new platform spawns. Nonetheless, after I do that, the enemy has some very bizarre habits, getting caught, and teleporting round:This is my 'level scene', where the movement isn't working properly, nor is the healthbar for some reason

This is the platform pre-fab, it has 4 links and a navmesh

I’ve tried utilizing a large NavMesh airplane for the enemy, that the participant can be unaffected by, however that did not work too nicely both. (Although I am open to any concepts!)

Here’s a clip of the identical venture in my Testing scene, the place the healthbar and enemy motion are working as supposed:enter image description here

I am positive that I am simply doing one thing easy unsuitable, however any assist can be actually appreciated! Additionally if you would like any extra data that will assist, its yours!

Thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments