collision and movement problem,,,

Blitz3D Forums/Blitz3D Programming/collision and movement problem,,,

vivaigiochi(Posted 2012) [#1]
look this image:


I can detect collision for all image players and background. After this i want align players along the normal of the line in background polygon that is touched from player. If you see image there is a player seems aligned but the second is in trouble...after this there is another problem...i want move it but the collision system seems fail and some player move out of the line where collide so if apply gravity to it the result is player go down everywhere touch..it seems to stop but after try to align collision fail and so it go down...



Last edited 2012


vivaigiochi(Posted 2012) [#2]
anyone help me?


Yasha(Posted 2012) [#3]
Are you using any 2D physics engines or is this all homegrown?

There's a great 2D physics engine included with Draw3D (called "Physix") that has a demo of this sort of stuff. You could take a look at that for inspiration, or just import and use it (even if you don't need the drawing part).


vivaigiochi(Posted 2012) [#4]
No i don't use any physics at thime, only homemade..i will see thanks..