Limit the radius of movement of the player
Hi. I am trying to implement a restriction on movement by a player in a certain radius. How to prevent the player to go beyond the radius of the object? At the same time without restricting its movement within the region.
Is there an elegant way to do this?
asked Apr 17 '19 at 09:18 AM in C++ Programming
i would do something like that, but that could put some jitter back and forth. you could play with the dot product of offsetDir, -vector and if > 0 set offsetDir to 0 ?
answered Apr 17 '19 at 04:12 PM
You don't need to code it, you can use mesh as a walks with a material with 0 opacity and collision
answered Apr 17 '19 at 04:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here