Say you have an item on the floor that can get blown away by wind or bumped into by a character. Is there a way to prevent it from ending up outside the nav mesh area?
Or is there some other way to contain it within an area?
Thanks.
The question’s motivation is really vague but I like theory so…You have 2 broad options here depending on your scale and vision:
- Add physical colliders to prevent your physical objects flying off. (invisible walls and such)
- Don’t use physical objects but actors that move on the navmesh and simulate the physics yourself.
Approach 2, of course is only feasible if you only need simple physics and have few “pseudo-physical” objects.
1 Like
Thanks, probably option 1, because I don’t know if option 2 would allow me to finish the game this century. I’m not a programmer, I assume it would take a while.
I thought maybe there is some standard method I’m not familiar with. I’m sure this scenario is tackled often.