Jump to content
  • 0
Sign in to follow this  
RikBair23

Need to script to rotate a rezzed object 90 degrees

Question

  • 0

I'm not a scripter, I build.

You have 3 axis for an objects location, and 3 for it's rotation.

You have 2 sets of 3 numbers,

Getpos 1, 0.5, 0

Euler2rot with all 0's

 

Change the configuration of one number sets, and see what happens. Try Getpos 0,1,0.5

or, eulerrot 90.0 ,0.0,0.0

Do this on a copy, a test example you can delete, or risk losing.

 

I can look for a link on SL scripting.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I'm not a scripter, I build.

You have 3 axis for an objects location, and 3 for it's rotation.

You have 2 sets of 3 numbers,

Getpos 1, 0.5, 0

Euler2rot with all 0's

 

Change the configuration of one number sets, and see what happens. Try Getpos 0,1,0.5

or, eulerrot 90.0 ,0.0,0.0

Do this on a copy, a test example you can delete, or risk losing.

 

I can look for a link on SL scripting.

Share this post


Link to post
Share on other sites
  • 0

This is a continuation of an earlier thread at http://community.secondlife.com/t5/Creation/How-do-I-script-an-object-to-rez-another-object-and-have-the/qaq-p/1690039, where you can go for most of the answer.

Your question last time was about how to turn the object upside down.  That's why we applied the rotation

llEuler2Rot(<PI,0.0,0.0>)  .

If you only want to turn the object halfway from zero radians to PI radians, then turn it PI/2 radians ......

llEuler2Rot(<PI/2,0.0,0.0>) .

This one's prettty easy, because it deals with basic math. However, rotations in general are admittedly one of the harder topics in LSL scripting. To learn more about rotations, start with https://wiki.secondlife.com/wiki/Rotation and https://wiki.secondlife.com/wiki/User:Void_Singer/Rotations

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

Sign in to follow this  

×
×
  • Create New...