Re: boomerang bullet how?

#3
I'm working on something like this at the moment. Assuming you already have C++ knowledge and know your way around the engine and wanted to create an actual boomerang object you will need to update the position of the entity to go in the world space forward direction, and when the entity reaches a certain distance from the player create a world space rotation towards the player using Quat::CreateRotationVDir() with the direction vector that goes from the entity to the player and use Quat::CreateNLerp() to lerp the rotation of the entity towards the player. Finally, set the local rotation of the entity to make it spin along the way. That should give you an idea.
My Youtube Channel

Who is online

Users browsing this forum: No registered users and 1 guest