Jump to content

Rotating Script Question


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

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

Recommended Posts

I am building a robot sculpture that will include a rotating flywheel above the sculpture's head. The only problem is, when I link the flywheel to the sculpture/robot, the entire object rotates, whereas I only want the flywheel to rotate above the head, like a moving halo. Any suggestions?

Link to comment
Share on other sites

Assuming you want the prim to rotate around its own local z axis (that is, around the blue arrow when the ruler is in local mode, rather than world mode, and you're looking at that particular prim  using "edit linked parts" rather than the whole object), try

 

 llTargetOmega(<0.0,0.0,1.0>*llGetLocalRot(),1.0,1.0);

 

Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...