Hello, I will try to keep it short and quick:
I’m trying to block a moving object that moves with velocity with a wall or something similar.
Now, if I use physics to block it with a wall (perhaps a display.newLine), with dynamic bodies colliding it will glitch the object to a certain position. To avoid that I could use static bodies instead right? However, velocity doesn’t work with static bodies. So I thought I could make the wall to be dynamic and my object to be kinetic, but again, through collision I believe the wall will get glitched in some unwanted position.
I then thought about limiting the velocity through a runtime listener checking for the objects position, it works, but through the velocity the object tends to cross the limit before the listener reacts to the object’s position.
Any hints that could help me?
If I find a solution by then I will make sure to update this thread for the others,
Cheers,
Phil
