Angus Kuhr
Dwarf with a Hammer
Join date: 17 Jul 2005
Posts: 43
|
07-31-2005 11:27
So, I scripted a lift for this prefab structure I'm almost finished with. It goes where I want it to and responds well to the structure being moved (it doesn't lift to where the second floor used to be). Problem is, it flops around a lot as it moves upward.
I've tried adding llSetRot(ZERO_ROTATION) to the script, but it still flops. I don't want it to move up so quickly that it isn't visible, though that would be a jury-rig for the problem in a pinch. Any adivce?
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
07-31-2005 12:37
llSetRot() will only set rotation once, when you call it. The lift is flopping because its a physical object that you haven't told to not rotate. This should fix it:
llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, FALSE);
(Stick it somewhere in at the start, you only need to call it once)
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|
Angus Kuhr
Dwarf with a Hammer
Join date: 17 Jul 2005
Posts: 43
|
08-01-2005 23:34
Ah, delightful. I'll try that next time I'm in. Thank you.
|