Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotation confusion

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
09-30-2006 11:56
I have modified a basic pose ball script to play a series of animation. That works fine. The problem arises when I need to both rotate and move the ball for one of the animation. At the start of each new animation the script rotates and moves the pose ball, so I know the problem is in the method that I using for these changes. If I place the pose ball at zero rotation at the beginning the series works correctly, each new animation takes place in the right position relative to start. However, if the pose ball is rotated on its z axis at the start, the positions of the subsequent animation are off relative to the first. I have looked at the wiki and have tried different applying what I have seen there but have not got it right yet. Any suggestions will be appreciated.
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
10-01-2006 03:26
Given that you first capture the start or "home" position and rotation of the pose ball, then the snippet below will do what you want...
CODE

llSetRot(ANIM_ROT * HOME_ROT);
llSetPos(ANIM_POS * HOME_ROT + HOME_POS);

HTH
/esc
_____________________
http://slurl.com/secondlife/Together