[Implemented] raycasting position MoveEntity/EntityLocate

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

[Implemented] raycasting position MoveEntity/EntityLocate

Post 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
bye,
Daniel