Changing Orientation At Will
Posted: Tue Dec 06, 2011 1:23 am
Hello, I am currently working with a complex object that resembles a vehicle. I would like to able to instantly tell the main body of the vehicle to rotate to a specific orientation value and for all of the wheels and other attachments to follow. However, the wheels seem to be causing friction and if i try to rotate the vehicle 180 degrees, the vehicle only rotates 55 degrees or so. There is also a lot of odd movements from the other items on the vehicle as they try to catch up with the frame of the vehicle. All of my spring settings for joints are setup with the damping constant and stiffness constant set to max values and advanced.softness set to a min value. This is to keep the wheels and other items in their exact position relative to the frame of the vehicle. I am trying to rotate the frame by doing this:
frame.Orientation = Quaternion.CreateFromAxisAngle(Vector3.Up, 180);
Oddly enough, if I do this:
frame.Position = newPosition;
Everything moves together and there is no problem at all.
What do I need to do to make a complicated object and all of it's children rotate to a specific angle?
Thanks in advance,
Syntax
frame.Orientation = Quaternion.CreateFromAxisAngle(Vector3.Up, 180);
Oddly enough, if I do this:
frame.Position = newPosition;
Everything moves together and there is no problem at all.
What do I need to do to make a complicated object and all of it's children rotate to a specific angle?
Thanks in advance,
Syntax