Hi,
I just created a gravity system with using c_trace. I store the height of player in a variable. There is not any problem when player stands on blocks. But I jumped on the a model, and I saw the height isn't calculated correctly. I'm using IGNORE_ME, IGNORE_PASSABLE and USE_BOX flags.
There is the c_trace part;
player_height = c_trace(player.x, vector(player.x, player.y, player.z - 1000), IGNORE_ME | IGNORE_PASSABLE | USE_BOX);
I also add some screenshots (double F11 and height variable printed on screen)
On the model; (height is 7)
On the model; (double F11)
Another side;
And another weird thing is happening. If player move on the model, it also starts to move upward;
How can I solve those?
Thanks in advance.