Jump to content

Avatar Movie: Scorpion rotor rotation


Xiija
 Share

You are about to reply to a thread that has been inactive for 1537 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

so, i was thinking of trying to make one, and am wondering what the correct rotation code would be.

i will prolly make a mesh of the rotor case, and just make the blades seperate, or a texture.

I think i need x & y rotations, and i will change them based on a vehicle movement code..

kind of like how tires turn right when a vehicle turns right etc?

here is an anim of the idea... any thoughts?

Scorpion Helo

 

mebbe i should just forget about adding rotations and affect each one individually?

here is what i have for testing...


float rollAmt = 20;
float pitchAmt = 30;
default
{
    state_entry()
    {       
    }
    touch_start(integer total_number)
    {  llSetLinkPrimitiveParamsFast(1,[PRIM_ROTATION,llGetLocalRot() * llEuler2Rot(<0,rollAmt,0>*DEG_TO_RAD)]);  // roll    
       llSetLinkPrimitiveParamsFast(1,[PRIM_ROTATION,llGetLocalRot() * llEuler2Rot(<pitchAmt,0,0>*DEG_TO_RAD)]);  // pitch    
    }
}

 

Thanx for any help :)

 

Edited by Xiija
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1537 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...