Jump to content
Sign in to follow this  
Pazzo Pestana

rotating paddlewheel on steamboat

Recommended Posts

I'd like to have the paddlewheel on a steamboat (not a vehicle) rotate on it's local axis while linked to the steamboat. I've been plowing through the various posts and find a lot of options but my scripting ability is limited.  I find llTargetOmega, llSetRot ... etc. but am not sure how to link the child prim movement.  Here's the basic rotation script I'm using ...

default

{    

state_entry()    

{       

llTargetOmega(<0,-1,0>,0.2,1.0);    

}

}

All suggestions are welcome! thanks!

Share this post


Link to post
Share on other sites

That's a basic llTargetOmega script.  It ought to rotate your child prim on its local Y (green) axis, as long as you put the script in the child prim, not the root prim (your boat).

Share this post


Link to post
Share on other sites

You are right about using llTargetOmega
Use it on the the child prim, the paddlewheel
If your paddlewheel is made of more prims you are in trouble, you can not make it spin AND link it

You have the options to make the wheel out of one prim and link it or make it of more prims and not link it
It is possible to make a complex paddlewheel in one sculpted prim or one mesh.

Another option is to animate the texture on the wheel and keep the prims fixed

:smileysurprised::):smileyvery-happy:

Share this post


Link to post
Share on other sites

Hey, thanks for the suggestions! I'm using a 1-prim sculpty made with prim oven and I discovered that the orientation of the root prim in the paddlewheel model before "baking" made a difference.  I linked the paddlewheel with the lltargetomega script to the steamboat and it's following along nicely rotating.

Just in time for the Mardi Gras Parade in New Toulouse on Feb 9th at noon!

Thanks, again!

Share this post


Link to post
Share on other sites

Just for completeness, it's possible to keep the script in the root prim and use PRIM_OMEGA to manipulate the spin of child prims on the local axis.

(As long as I'm rambling on with superfluous information, I'll mention that the local axis isn't the prim's own axis (i.e., not the arrows in the Build tool with only the child prim selected), but rather that of the root prim in the linkset. This isn't true only of llTargetOmega, but it frequently arises in this context for child prims that both spin about their own axes and rotate with respect to the root--such as front wheels of vehicles--which paddlewheels don't do.)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...