This is a simple if the cube/player enters the spheres trigger collider, the sphere follows the player, if the player exits the sphere collider by running away, the sphere collider moves back to its original position.
It works perfectly fine, but I am new to behavior trees. I feel my tree is quite a bit messy for something so basic, could anyone offer tips, a screen shot of a much better version, or start a discussion here about an optimal way.
Your 2nd tree is indeed better than the 1st 🙂
I think that you can completely remove the second/middle branch though, and simply have the TriggerStay condition assigned where you now have the “isFollowing == true” condition, unless you want an “isFollowing” variable for other things that you will add down the road.
If you want some further help, or explanation of the above, please don’t hesitate to ask!
Thanks 🙂
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.