Forum

> > CS2D > Scripts > Does anyone have (or made) a 2D physics system?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

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

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

Starkkz
Moderator Off Offline

Zitieren
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.
1× editiert, zuletzt 21.05.14 23:22:11

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

Pagyra
User Off Offline

Zitieren
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

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

FlooD
GAME BANNED Off Offline

Zitieren
user Starkkz hat geschrieben
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

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

Starkkz
Moderator Off Offline

Zitieren
@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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht