- Home /
Question by
easilyBaffled · Jan 29, 2013 at 04:48 PM ·
rotationrotatetranslateball
Moving and rotating a ball
I have a ball that is rotated 90 degrees on its x so that its Y is forward its z is its up and x is right. The ball is moving 'forward' buy using transform.Translate(Vector3.up*Time.deltaTime*.25);
When it hits a waypoint I have the ball match the waypoints rotation by transform.rotation = tran.rotation;
But I want to to maintain its rotation around its y/forward axis. But if i try to adjust the Y rotation the whole thing goes out of wack. Is there something I'm not understanding about rotations? Is there a better way to do this?
Comment