Jump to content

Rotating Script Question


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