Jump to content

Prim front wheels that actually spin! ......are they few and far between?


Tazmania Trefusis
 Share

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

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

Recommended Posts

I've been looking for a car script or vehicle script that will actually 'spin' the front wheels as well as steer them too.

Every script I've tried so far, Inc the DT car script (2.1 I think) just simulates the wheels spinning by just rotating the texture on the wheels. Im looking for a car script that will actually spin the wheel prims as it would in real life.

I know this obviously involves 2 rotations on the front..spin AND direction for when you steer but surely not all scripts are just animating the textures. Those with proper spoked wheels (and not alpha textures!) and very nobbly tyres, cant use those texture animating scripts as the wheels wouldn't look right.

Needs to work on sculpted wheels, multiprimmed wheels etc

Anyone know where I can find the scripts I'm looking for at hopefully a good price?

 

Thanks in advance

Taz

Link to comment
Share on other sites

  • 3 weeks later...

Billysue's hard work

 

//billysue's  linked message(wheels that turn)
integer MyNumber = 16;


default
{state_entry() {
    
  }
    link_message(integer sender, integer num, string msg, key id)
    {
        if (num == MyNumber)
        {
            if (msg == "foward")
            {
                llTargetOmega(<0,1,0>,PI,1.0);      
            }
            if (msg == "stop")
            {
                llTargetOmega(<0,0,0>,PI,0.0);   
                }
 if (msg == "reverse")
 {
llTargetOmega(<0,-5,0>,PI,1.0);      
            }
        }

    }
}
/////////////////////////////////

and this is what you add to the car script below

llMessageLinked(LINK_SET, 16, "foward", "");

llMessageLinked(LINK_SET, 16, "reverse", "");

llMessageLinked(LINK_SET, 16, "stop", "");

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4569 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...