• 0

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

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

## Join the conversation

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

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.