Page 1 of 1

[Implemented] raycasting position MoveEntity/EntityLocate

Posted: Wed Dec 31, 2008 12:07 pm
by DarkDragon
Hello,

I want a flag for MoveEntity, so the entity will never move through objects. At the moment if the program hangs for a second while the player is moving the player goes a step larger than the object he's colliding to and the player will go through it.

It would be useful to check in steps (dependent on the size of the object which is moving).

This would be normal:

Code: Select all

Time before lag:
Player              -               Wall                 -            Other side

Time after lag:
              Player-               Wall                 -            Other side
That is happening:

Code: Select all

Time before lag:
Player              -               Wall                 -            Other side

Time after lag:
First side          -               Wall                 -            Player
Regards,
Daniel