Hi,

I've got a problem with the bounce function.. this is just like a bouncing ball with z-going up/down and y-sidetoside..

Therefore I used
Code:
void	ball_move()
{
	c_move(me, vector(0, 0, move_speed*time_step), nullvector, IGNORE_PASSABLE | GLIDE);
	if (trace_hit)	{ vec_to_angle(my.pan, bounce); }
}



The above function is in a while loop, the ball will move going up but when it hits entities it got stuck and no bouncing happens.. Why? I know that there should be something wrong with the Euler's angle.. I've already tried to add these codes if the ball hits the entities but still no luck.
Code:
vec_to_angle(my.pan, bounce);
	my.pan   = 0;
	my.tilt  = 0;
	my.roll += 5 - random(10);
	my.x		= 0;



x - should be zero...

Please advise



Can't is not an option™