I’m trying to run some math on my projectiles to find intersect points so I can have some target prediction. The issue is that the rigidbody.velocity and rigidbody.velocity.magnitude always return zero.
I move the objects with addforce, I don’t move them by their transform.position. Why is their velocity zero, and how do I go about fixing it?
Example moving projectiles: http://i.imgur.com/PE9JFAH.webm
Code to move projectile:
private void ApplyForce(Transform targetTransform)
{
Vector3 angle = (targetTransform.position - transformV.position).normalized;
GetComponent<Rigidbody>().AddForce(angle * (speed * 10));
}