Jump to content
  • 0

a scripting question


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

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

Question

  • 0

I think you're going to be out of luck.

LSL doesn't support hierarchies of linkset, which means -- to put it simply -- you can only really rotate a whole object round its centre or rotate individual child prims round their centre. 

What you can't really do, is rotate mutiple child prims round another child prim's centre.   Technically,  it can be done but the end result would not look right -- the overall effect would be jerky and the prims would keep moving in and out of alignment.   Anyone sufficiently experienced with LSL to know how to do it will also, almost certainly, say it's not worth the effort -- it would not be a trivial piece of scripting and the end result would look horrible, no matter how hard you try.

You might consider buying a tool (like Mesh Studio) that can read the parameters of an object made from prims and generate a .dae file that you can then upload as a single mesh object.  That would then be very easy to rotate when it was linked to the vehicle.    That, or buying mesh wheels, is all I can suggest.

 

 

  • Like 2
Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I think you're going to be out of luck.

LSL doesn't support hierarchies of linkset, which means -- to put it simply -- you can only really rotate a whole object round its centre or rotate individual child prims round their centre. 

What you can't really do, is rotate mutiple child prims round another child prim's centre.   Technically,  it can be done but the end result would not look right -- the overall effect would be jerky and the prims would keep moving in and out of alignment.   Anyone sufficiently experienced with LSL to know how to do it will also, almost certainly, say it's not worth the effort -- it would not be a trivial piece of scripting and the end result would look horrible, no matter how hard you try.

You might consider buying a tool (like Mesh Studio) that can read the parameters of an object made from prims and generate a .dae file that you can then upload as a single mesh object.  That would then be very easy to rotate when it was linked to the vehicle.    That, or buying mesh wheels, is all I can suggest.

 

 

  • Like 2
Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 1685 days.

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

Join the conversation

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

Guest
Answer this question...

×   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.

×
×
  • Create New...