- Home /
velocity direction
If I have a tumbling object the direction is along multiple axis at varying degrees of it's rotaton. There was a post of velocity direction. Is there a direction vector? There is no staitc axis here to propel along. I fear I must calculate. Oh, tell me this is not so.
An example is a tumbling asteroid in a ship view portal. The ship can circumnavigate / fly around the asteroid as it travels to an inhabited planet. The delimna is the asteriod can not be stopped. It is the ship's crew duty to circle the asteroid and find weak spots to pulse canon and obliterate. Here is a 6 figure game. Easily! I have a whole book of them just waiting to flood the market. But this tumbling problem has got me stopped. So I give this one to the masses to solve. In the network version there is a black hole that numerous asteroids fly towards. The object is for each team to anihilate their asteriod before it hits the event horizon making them the winner. But it gets better!!!! The other mode is to have multiple asteroids heading towards the black hole and the team must navigate to each one and obliterate it.
The current problem is as the viewer/player in this 3d game flys around the asteroid the tumbling asteroid's path /direction is altered by the spinning environment.
I await an answer.
$$anonymous$$ind giving me a couple of those figures? :p
Seriously though, I have no idea what you're asking. If you're looking to retrieve the velocity of the tumbling object, use rigidbody.velocity.
Velocity is of no interest. I am concerned with the direction of a tumbling object.
Answer by flaminghairball · Aug 22, 2011 at 07:50 PM
rigidbody.velocity.normalized will give you the tumble direction.
I did not see the .normalized in the rigidbody.velocity Scripting document.
rigidbody.velocity is a Vector3 - normalized is a property of Vector3.
If this answers your question, mark it as answered.