Jump to content
  • 0

a scripting question


Tiggy3
 Share

You are about to reply to a thread that has been inactive for 1990 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 comment
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 comment
Share on other sites

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