Stuck with this one. I need to know how to get the velocity of another rigidbody in the game…
//C#
Vector3 thatVelocity = someGameObject.GetComponent<Rigidbody>().velocity;
//unityscript
var thatVelocity : Vector3 = someGameObject.GetComponent(Rigidbody).velocity;
You don’t need GetComponent:
var velocity = otherObject.rigidbody.velocity; // C# and Unityscript
–Eric
Sorry, I missed your replies. Thanks. It was simpler than I thought!