Page 1 of 1

player origin

Posted: Wed Apr 21, 2004 6:49 pm
by fuhrer
can someone tell me where exactly the origin of a player is? must be at there feet but is it at 0? or slightly higher?

ill show u the script im using, the ball is landing too low.

Code: Select all

keep_up:

	$keep_up_trigger waittill trigger
	$ball moveUp (level.ballheight + 30)
	$ball waitmove
	$ball moveDown level.ballheight
	$ball waitmove
	goto keep_up

end

ball_height:

	while(1)
	{
	level.ballheight = (vector_length ($ball.origin - $player.origin))
	wait .01
	}
end

Posted: Thu Apr 22, 2004 4:16 am
by nuggets
here's what i did

/forum/viewtopic.php?p=48011&highlight=#48011

Posted: Thu Apr 22, 2004 2:48 pm
by fuhrer
yes that is the script he sent me to work with, however the ball doesnt end up on the ground if u stop it from finishing its bounce..

with the keep up i managed to get it almost land on the ground if u keep bashing it but its not quite there,

where is the players origin?

the balls origin is in the centre of the ball but the players origin i am told is at his feet, is that right at his feet or 2 units above his feet?

anyone know?

shadow

Posted: Thu Apr 22, 2004 5:16 pm
by tltrude
The players origin is bottom center of the bounding box. You can see the origins, if you look at your map with tris 2 on.

Image