|
Kale Kawabata
Registered User
Join date: 18 Sep 2005
Posts: 41
|
10-01-2006 21:11
I built a flying vehicle and on voice comand i want it to rotate the entire ship 90 degrees. What command would I use to make the entire thing rotate 90 degrees???
I also have linked prims with scripts in them so that these linked prims rotate individually based off of the root prims positions and rotation. Will the coordinates and rots. i have in the individual prim scripts be messed up when the entire vehicle is rotated 90 degrees?
If so, is there a way to fix that?
_____________________
Kale Kawabata =P
|
|
Kale Kawabata
Registered User
Join date: 18 Sep 2005
Posts: 41
|
bump
10-03-2006 06:16
just a bump 
_____________________
Kale Kawabata =P
|
|
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
|
10-04-2006 00:18
Bumped - a little  If you rotate the root part of an object the childs will follow and retain, of course, their relative rotation to it. What to use depends on what your vehicle is like. With a physical object you'd have to set the banking values and apply power to the motor axis that will turn the vehicle in the right direction. With a non-phys object you can use llSetRot() to set the roatation. Better use this in incremental steps or it will look jerky.
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
10-04-2006 07:53
I actually did this for a ship that I needed to "park". The command "all stop" would slowly orient the ship to world axis <0,0,0> (Due east due to the shape of the pilot's seat). Then after a few seconds, it would switch to non-physical, and use llSetRot to "snap to the axis" at the very end.
While the glitch at the end was obvious, it definitely let you know when it was safe to get up.
I had a lot of problems getting it to rotate reliably while still physical..
I'm curious though, do you want to rotate 90 from the angle of the vehicle when the command is issued? or do you want to align it to like <0,0,90> on the world axis? Does the vehicle still need to be driving after the turn? If so.. I'm afraid there's just no easy way to do this.. because your vehicle may store kinetic energy during that 90turn, and when released, it'll keep going. Even going non-phys, snapping to 90, and going phys again can store unreasonable amounts of kinetic energy in the vehicle.
Ever rez a vehicle, and hop in and have it start cycloning out of control?
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|