Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by hurik

hi,

did someone worked with the collision-map.js?

i want my entities to bounce back, like they do with walls. i tried to change the _traceStep function. but the problem is that dominic, hasn't designed it so, that it is an easy change ... and i don't want to have an wall around my map ...

hurik

1 decade ago by Jerczu

calculate the edge of the screen and apply negative velocities - Simples - here's how to calculate the edge of the screen I posted it some time ago. http://impactjs.com/forums/code/calculate-the-edge-of-the-screen

1 decade ago by hurik

i want the same behavior like with walls. which calculates the way to the wall and the bounciness it bounces back, to get the right distance for the next frame.

and i'm too lazy to make it myself, because anything is there. :)
Page 1 of 1
« first « previous next › last »