Say I'm getting a angle read from camera. I am at those point making an effect of in range of player and in range. It deflects. But I want to set the projectiles velocity to deflect as if a radius.
So imagine a sphere is around character and your blocking a projectile but not looking directly at it and because we can assum slight of center is slightly center is a different normal. For instance
Your looking straight ahead and object comes in at you at 45 degree angle it would bounce back the at it came if objects velocity was true center to your center because a radius is a radius.
Help me solve this math of getting the forward vector and dot prod of object vs player to ensure it defects correctly.
So imagine a sphere is around character and your blocking a projectile but not looking directly at it and because we can assum slight of center is slightly center is a different normal. For instance
Your looking straight ahead and object comes in at you at 45 degree angle it would bounce back the at it came if objects velocity was true center to your center because a radius is a radius.
Help me solve this math of getting the forward vector and dot prod of object vs player to ensure it defects correctly.
Comment