Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Poseballs always too high/low?

Seven Shikami
Registered User
Join date: 22 Sep 2006
Posts: 82
02-04-2007 08:20
I'm trying to set up some poseballs that run the basic free "boogie" dance. Problem is, when different avatars sit on it, some end up hovering over the ground, some sink into it, depending on how tall they are.

Is there a way to auto-adjust a poseball so that it always "levels" itself off and sticks the player's feet firmly on the ground?

I'm using Nyterave's basic free poseball script, although this problem would probably happen with any other basic poseball, too. SITTING balls aren't so bad since it seems to measure the animation from pelvis level, but long/short legs wreck standee balls...
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
02-04-2007 08:52
From: Seven Shikami
I'm trying to set up some poseballs that run the basic free "boogie" dance. Problem is, when different avatars sit on it, some end up hovering over the ground, some sink into it, depending on how tall they are.

Is there a way to auto-adjust a poseball so that it always "levels" itself off and sticks the player's feet firmly on the ground?

I'm using Nyterave's basic free poseball script, although this problem would probably happen with any other basic poseball, too. SITTING balls aren't so bad since it seems to measure the animation from pelvis level, but long/short legs wreck standee balls...



The way to do it is to adjust the poseball position height by a proportion of the agents height after they sit. It will be dependant upon the sit target being used.

CODE

key id = llAvatarOnSitTarget();
vector size = llGetAgentSize(id);
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
02-04-2007 08:56
I've got no code example I'm afraid but I believe self-adjusting balls (so to speak) utilise llGetAgentSize to determine the height of an Avatar and adjust accordingly.