Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object Drifting while rotating.....HELP!!

Dawn Moseley
Registered User
Join date: 26 Mar 2005
Posts: 1
04-26-2006 23:58
Hi all! I'm a very new builder and have little scripting exp. I am having a problem with an item i've been working on and could use some help. Basically i've created a frame that has a rotating object set into it. A person sits on the rotating object and when someone else clicks on it, it rotates them a set number of degrees, then when clicked again it returns them to the original position. My problem is that the object tends to start drifting off the frame when it is clicked a few times. Please help this noob if you can, i'm desperate to try and get this thing to work. Thanks!
Jigsaw Partridge
A man of parts
Join date: 3 Apr 2005
Posts: 69
04-27-2006 00:21
What function calls are you using to perform the rotation? There is a known problem with 'prim drift' in SL, where if you repeatedly apply 'forward' and 'reverse' rotations or shifts to move an object, errors slowly accumulate. The most common way of overcoming this (used, for example, by most 'door' scripts) is to save the 'original' position and rotation in variables, and then just re-apply these rather than the calculated values.
Aodhan McDunnough
Gearhead
Join date: 29 Mar 2006
Posts: 1,518
04-27-2006 00:23
Is the spinning object physical or not and what commands are you using to rotate it?

If it's a physical object I will suspect that the avatar sitting on it is changing the center of gravity, so the rotational impulse will create non-rotational movement.