herdem_dog.c
/**
 * Handler for when dog hits the wall
 */
Handler for when dog hits the wall
Handler for when dog hits the wall
void herdem_dog_wall_handler(jty_c_info *c_info)
{
    jty_actor *a = c_info->e1.actor;
    a->x -= c_info->normal.x * (c_info->penetration + 1);
    a->y -= c_info->normal.y * (c_info->penetration + 1);
}
void herdem_dog_wall_handler ( jty_c_info * c_info ) { jty_actor * a = c_info -> e1 . actor ; a -> x -= c_info -> normal . x * ( c_info -> penetration + 1 ) ; a -> y -= c_info -> normal . y * ( c_info -> penetration + 1 ) ; }
Handler for when dog hits the wall
Handler for when dog hits the wall