A question about the bounding box. My player has the bounding box, so he is non-passable when he is not in the vehicle. The vehicle also has the bounding box, so when I get in the vehicle it behaives unpredictably, thus I make the player passable, when he enters the vehicle
if(my.x == vehicle.x){ set(my,PASSABLE);}
though when I get out of the vehicle again, I cannot make myself unpassable again? Is there a flag opposite to PASSABE?
Another question: if I for example make the player unpassable all the time, even if I enter the vehicle, I don't care about its weird behavior, though when I get out from it, the player's bounding box is changed, it is much bigger now....why so? I try to adjust his bounding box again, c_setminmax(me), then vec_set(my.min_x.....) and so on, but the bounding box does not change to its normal scale. Even if I put the c_setminmax in the loop, the bounding box changes to the normal scale, but it attempts to change to that bigger scale every frame... So the player looks as if he is jumping slightly all the time.... How to fix it? Any ideas?
Thanks in advance