Forum

> > CS2D > Scripts > Does anyone have (or made) a 2D physics system?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Does anyone have (or made) a 2D physics system?

4 replies
To the start Previous 1 Next To the start

old closed Does anyone have (or made) a 2D physics system?

Starkkz
Moderator Off Offline

Quote
After a long trying to simulate some physics in 2D (using Lua), I managed to make a little football script on where you hit the ball and it moves depending on the angle between your position and the sphere, but I haven't managed to do similar stuff with boxes. I looked for some 2D physics system and I found bump (a 2D physics engine). But it does not have non axis-aligned collisions. So this is my doubt; does anyone have (or made) a 2D physics system that is made to work with spheres and boxes, rotated objects, velocity and acceleration, conditional collisions, etc? (working with callbacks if possible) I'm not able to make this yet because I don't know the objects behaviour on collisions (but spheres). I would highly appreciate a response.
edited 1×, last 21.05.14 11:22:11 pm

old Re: Does anyone have (or made) a 2D physics system?

Pagyra
User Off Offline

Quote
Check this links:

The documentation can be found on github: http://vrld.github.com/HardonCollider/
https://github.com/Yonaba/broad-phase-algorithms

You can view the sourcecode online here: https://github.com/vrld/HardonCollider

http://love2d.org/wiki/BoundingBox.lua

http://www.phailed.me/2011/02/polygonal-collision-detection/

http://stackoverflow.com/questions/10394630/tile-collision-detection-cant-figure-out

http://coronalabs.com/blog/2013/07/23/tutorial-non-physics-collision-detection/

http://devmag.org.za/2009/04/13/basic-collision-detection-in-2d-part-1/

http://www.randygaul.net/2012/07/04/collision-basic-2d-collision-detection-jump-physics/

http://www.gamedev.net/page/resources/_/technical/game-programming/general-collision-detection-for-games-using-ell-r1026
http://en.wikipedia.org/wiki/Sweep_and_prune

http://en.wikipedia.org/wiki/Collision_detection

http://forums.xkcd.com/viewtopic.php?f=11&t=63710

old Re: Does anyone have (or made) a 2D physics system?

FlooD
GAME BANNED Off Offline

Quote
user Starkkz has written
I don't know the objects behaviour on collisions (but spheres). I would highly appreciate a response.

then go learn some freshmen mechanics and figure it out lol

not that hard

i doubt you'd be able to make good use of any engine if you dont understand the basic physics

old Re: Does anyone have (or made) a 2D physics system?

Starkkz
Moderator Off Offline

Quote
@user Pagyra: Hardon Collider seems a good module, I'll give it a try.

@user FlooD: If you're not going to post something useful, you shouldn't post. Also I do know how the basic physics work, but that doesn't mean I'll be able to know how they'll behave after a collision.

thread closed.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview