Jump to content

< SOLVED >Rotation prim Cube around Sphere prime


Mirzet
 Share

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

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

Recommended Posts

I'm trying to rotate cube prim around a sphere prim in different directions
I wrote a script for it, but it doesn't work the way I want.

I am looking for someone who understands the following functions well:

llAbs, llAcos, llCos, llSin, llAxes2Rot, llEuler2Rot, llAngleBetween, llRot2Axis, llAxisAngle2Rot

Please if you understand what those functions do, and you have time test script in SL

Script works with wrong rotation
thank you

sphere size:  x=0.5, y=0.5, z=0.5

cube size: x=0.089, y=0.975, z=0.233

You can find me at this location in SL

End script

Snapshot_001.jpg

Edited by Mirzet
Link to comment
Share on other sites

7 minutes ago, Mirzet said:

but it doesn't work the way I want.

We're not mind-readers*. What did you want it to do, and what is it doing?

*Well at least ~I'm not and I'm skeptical of anyone else who claims to be, but I guess I shouldn't judge :P

Edited by Quistess Alpha
Link to comment
Share on other sites

I'm with Quistess here - what exactly is the issue you're having - i.e. how is the script itself misbehaving?

The core function seems simple enough (move the green prim about the red prim in a sphere), but without setting up a testing rig myself (I'm pretty busy RL right now, so I don't have the time to do so) I can't tell what the issue is immediately.

Link to comment
Share on other sites

  • Mirzet changed the title to < SOLVED >Rotation prim Cube around Sphere prime
You are about to reply to a thread that has been inactive for 880 days.

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...