Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Centering Avatar's Bounding Box on a Bike

Rutherford Beresford
Registered User
Join date: 2 Sep 2007
Posts: 45
02-14-2009 18:56
I'm hoping this post is in the correct forum. If it's not, please forgive me. I'm not sure if my problem is really with animations, scripting or building, but I'm going to try animations first as it seems to make the most sense to me.

What I have is this: A low-prim (under 31 prims) motorcycle and an avatar that sits on this motorcycle invoking a 2-frame animation I built in Poser 7. When the avatar sits on the bike and attempts to drive the bike forward, the bike constantly veers to the right. I've been told this has to do with the way I built the animation and it's related bounding box.

When I turn on the advanced feature BBOX, I look at the bike without the avatar on it and each and every prim's bounding box seems to be perfectly centered left-to-right meaning there should be no reason for any kind of pull to the left or right when driving the bike.

With this feature turned on I also check out my avatar and notice a purple-ish / pink bounding box surrounding my avatar, also nicely centered.

When my avatar sits on the bike and envokes the animation, I notice a new orange bounding box appearing out of nowhere that runs the length and the width of the bike. I also notice my avatar's purple / pink bounding box super-imposed on the orange bounding box but the two are not perfectly centered on one another. My avatar's bounding box hangs off to the right somewhat. I'm thinking this is what's causing the bike to veer.

When I adjust the sit target position in the script and move it a few "notches" to the left, even though I don't appear to be properly seated to drive the bike, I am able to do so and the pull to the right is gone. This confirms, at least in my mind, that my avatar's alignment with the bike is the problem.

What can I do to get my avatar's bounding box centered on the bike's bounding box and yet still have my avatar positioned squarely in the driver's seat?

Any and all suggestions, comments, and advice are GREATLY appreciated!

Sincerely,
Rutherford Beresford
WhiteStar Magic
Build it+Script it=RUN!
Join date: 24 Jul 2008
Posts: 36
02-15-2009 04:35
This has little to do with the animation itself. This is a Prim / Script issue. I suggest posting this in Scripting Tips. I'll contact you in-world, as I may be able to help you..
Deira Llanfair
Deira to rhyme with Myra
Join date: 16 Oct 2006
Posts: 2,315
02-15-2009 06:02
The only way I can think that the animation could have an effect here is that you actually have made a HIP displacement between Frame 1 and 2 which is causing it. Check the HIP prarameter dial settings on Frame 1 - make sure they are all zero. Then check them on Frame 2. Because you are sitting on a motorcycle, I would expect you to have rotated the HIP foreward a little - but nothing else. Left-right, up-down and other rotations should still be zero. If you find that the Left-right HIP parameters have moved, then this may explain your avatar bounding box being displaced to the right. It can be very easy in Poser to move the figure slightly or just tilt it a little, and you not realise you have done this.

Otherwise - I can't see that your problem could lie with the animation.
_____________________
Deira :)
Must create animations for head-desk and palm-face!.
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
02-15-2009 09:23
One possible cause is if the orientation of the root prim of the bike is not aligned with the axis of the bike. When the script takes controls it is moving the bike in what it thinks is the forward direction but it isn't the one you had in mind.