![]() |
|
#1
|
||||
|
||||
|
Hi,
this is my first post and my first approach of an physics engine^^ I don't know how to check for collisions and there is no friction yet, but im still working on that... Keys:
Download ![]() EDIT: Yeah, this is just crap but currently I'm re-writing this in C & OpenGL. I'll post it here soon ^_^ Last edited by KeauHou; 11-01-2009 at 03:43 PM.. |
|
#2
|
||||
|
||||
|
I have rewritten the whole thing in C (last one was written in PureBasic). But I just can't get the collision working. I had some ideas but they were just ideas ^_^
I need something to test if two lines are crossing, but I can't get it right, maybe someone could help me :P This is what it looks at the moment ![]() Last edited by KeauHou; 11-01-2009 at 03:44 PM.. |
|
#3
|
|||
|
|||
|
Not a bad start :-)
I'd like to take a look at your source - if you're willing to share it... google "line line intersection algorithm" and you should be all right. cheers, Mike |
|
#4
|
|||
|
|||
|
I am struggling with polygon collisions myself atm. good luck
|
|
#5
|
||||
|
||||
|
Thx I googled in german so i didn't found anything usable...
This is my first project in C and it isn't really efficient also I don't made comments yet ![]() I can send you my source when it's a bit clearer ![]() Now I can detect collisions but i can't calculate the impulse, but im working on that. |
|
#6
|
|||
|
|||
|
How's the project going?
:-) |
|
#7
|
||||
|
||||
|
I don't have much time at the moment
![]() |
|
#8
|
||||
|
||||
|
the first post is post #4 in the topic for some odd reason. Somehow or the other it looks like the id of the first post ended up getting updated, and other posts after it didnt.
|
|
#9
|
||||
|
||||
|
Quote:
back on topic, uh... back on topic!!! |
|
#10
|
|||
|
|||
|
I've actually been working on collision detection myself, for my own Verlet physics engine.
I would be glad to share some helpful tutorials I've been using for that.Here you go: http://www.metanetsoftware.com/technique/tutorialA.html http://board.flashkit.com/board/showthread.php?t=738599 http://www.tonypa.pri.ee/vectors/tut09.html http://www.tonypa.pri.ee/vectors/tut10.html http://www.tonypa.pri.ee/vectors/tut11.html Hope that helps! By the way, you can see the latest progress on my physics engine here, on the Dejeweled Development Blog. ![]() |
![]() |
| Tags |
| beginner, purebasic, test, verlet |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|