Rotation on an axis but with a tilt
|
|
TwoSheds Flanagan
Registered User
Join date: 20 Jun 2007
Posts: 13
|
02-01-2008 03:44
And a cheerful good morning to you all.
It turns out I really DID need to know geometry and whatnot after all. I'm building a doohickey that rotates around its central axis which is no problem. But I also want the object to be tilted - for the sake of argument let's say, oh, 23.44 or so degrees (I'm also keen on fjords <g> ) so that a point on the equator of the object will "wobble" as the object rotates.
I'm afraid I don't have nearly the math chops to figure this out. In fact it turns out I don't even have the math chops to do an adequate job of describing what I'm looking for to the search system because I'm certain I can't have been the first one to ask about this but I've had zero luck narrowing my search down to the point that I find anything.
Thanks for any help and remedial geometry you can provide <g>.
|
|
TwoSheds Flanagan
Registered User
Join date: 20 Jun 2007
Posts: 13
|
02-01-2008 03:53
And once again the simple act of asking seems to clarify my needs and make it easy for me to find the answer myself. Ironically it was my joke about axial tilt in the first post (23.44 degrees is the axial tilt of the Earth, and fjords are what Slartibartfast specialized in in the Hitchhikers Guide to the Galaxy books and shame on you if you didn't know that <g> ). Gave me the idea to search on the word "planet" which lead to this: /54/a9/105728/1.htmlWhich has several ideas that I'll try this evening. So, ummm... Never mind then <g> Thanks
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-01-2008 12:12
the simple solution would be a local axial tilt and a global rotation. or some similar setup target omega
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
TwoSheds Flanagan
Registered User
Join date: 20 Jun 2007
Posts: 13
|
02-06-2008 12:03
Well it turns out I spoke too soon about speaking too soon. I tried the two methods I found and neither worked the way I'd hoped so here I am, back again, hat in hand <g>.
Here's what I'm trying to do (sorry I can't get into SL to give a better example at the moment). I've got a cylinder that's about 1.5 meters across and perhaps .1 meter high. For the sake of example let's say that there's a short line parallel to the ground at the 3:00 position on the side of the cylinder. Making it rotate is easy enough so long as the plane of the cylinder remains parallel to the ground.
If I tilt the plane of the cylinder so that it's no longer parallel to the ground and start it spinning it still turns as if it's still even with the ground. In other words the object has been tilted but the central axis on which it rotates stays unchanged.
In the perfect world that is my imagination, I'd like to be able to effectively tilt the axis of rotation along with the object, so that as it rotates to the 3:00 position the dash is at it's apogee, and at the 9:00 position it's at its perigee.
Has anyone done this and if so would they happen to have the exact code with extensive comments handy - possibly with pictures, YouTube presentations and a phone number I can call when I don't understand a word of it <g>.
Have I mentioned how much the math of this bewilders me, cause if I haven't, it does. A lot <g>.
Thanks a bunch.
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
02-06-2008 12:59
Im not sure that I understand the question, but the answer is definatly 42. @Jesse 
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-06-2008 15:17
string answer = 42; rotation rot;
default { state_entry() { rot = llGetRot(); llTargetOmega(<0,0,1> * rot, 1, 1); } touch_start(integer n) { if (rot != llGetRot()) { rot = llGetRot(); llTargetOmega(<0,0,1> * rot, 1, 1); } } }
If you manually change the rotation then you need to right click the prim and hit "Touch" to have it reread the roatation before you exit from edit. Unfortunately there is no CHANGE_ROTATION test so that you could do this automatically. If you are changing the rotation by script then just insert the llTargetOmega line in below the line where you change rotation.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
TwoSheds Flanagan
Registered User
Join date: 20 Jun 2007
Posts: 13
|
02-07-2008 03:23
Thanks Jesse, you're a scotch bonnet and a half with some jalapeƱos on the side <g>
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-07-2008 03:45
From: TwoSheds Flanagan Thanks Jesse, you're a scotch bonnet and a half with some jalapeƱos on the side <g> WOOHOO!!! Someone finally knew what scoville units were!!!!!!!!!!!!!!!!!!!!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-07-2008 04:21
I guess you missed my comment months back. =P (ok it was a subtle 'hot' joke)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-07-2008 06:33
From: Void Singer I guess you missed my comment months back. =P (ok it was a subtle 'hot' joke) Heck, sorry about that. Both my daughter and I are certified chili heads. She is 11 and has just started on Habaneros. Lindt's choclate has a chili chocolate bar now. Still patiently waiting to get my hands on a Bhut Jolokia @ 1,000,000+ scoville units. Well, I have to get back to work!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-07-2008 21:15
dunno what they're really called, but a friend of mine used to grow what he called 'peter peppers'... no longer than a fingernail, 2 in a HUGE pot would spice it up nicely, 4 would be unbearable to 99% of the population...
but I can't imagine mixing peppers and chocolate... sacrelige!
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|