Well, technically in this lecture we shoot an arrow from a bow, but it is exactly how I imagine a D&D magic missile looking!
I’ve noticed that the arrow asset is not provided in the lecture’s resources, could you fix it please?
Yikes! I forgot to add it. Thanks for pointing this out. It will be there in a few minutes.
I believe using
Vector3 AimLocation => target.GetComponent<Collider>().bounds.center is better since this is common to any kind of collider.
The arrow is landing right in front of the Player tried to figure out with Player postion and Core Object position but seems all fine.
Any idea what could be?
I did reset the position and rotation of ArrowProjectile and Simple Arrow seems working now.
After I did the challenge and tried to make the arrow move on my own, I realized that it was unintentionally orbiting my player like a satellite. I already fixed it though. Just wanted to share because I thought it was hilarious!
Don’t fix that bug, call it a feature! Shield of Magic Missile!
Totally agree with @Brian_Trotter, that’s a feature!