Fun-Motion Physics Games Forum  

Go Back   Fun-Motion Physics Games Forum > Developers > Feedback Request

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-12-2009, 04:51 PM
KeauHou's Avatar
KeauHou KeauHou is offline
Junior Member
 
Join Date: Oct 2009
Location: In front of my Computer
Default First Verlet Test

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:
  • 1 = create circle
  • 2 = create square
  • x = reset
  • left click = new particle
  • right click = connect 2 particles
  • space = pause
  • tab = catch particle for moving with mouse
  • escape = exit


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..
Reply With Quote
  #2  
Old 10-16-2009, 11:01 PM
KeauHou's Avatar
KeauHou KeauHou is offline
Junior Member
 
Join Date: Oct 2009
Location: In front of my Computer
Default

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..
Reply With Quote
  #3  
Old 10-18-2009, 08:23 PM
h4tt3n h4tt3n is offline
Senior Member
 
Join Date: Mar 2008
Default

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
Reply With Quote
  #4  
Old 10-19-2009, 12:41 AM
Nate The Great Nate The Great is offline
Senior Member
 
Join Date: Apr 2009
Default

I am struggling with polygon collisions myself atm. good luck
Reply With Quote
  #5  
Old 10-19-2009, 04:10 AM
KeauHou's Avatar
KeauHou KeauHou is offline
Junior Member
 
Join Date: Oct 2009
Location: In front of my Computer
Default

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.
Reply With Quote
  #6  
Old 10-31-2009, 02:41 PM
h4tt3n h4tt3n is offline
Senior Member
 
Join Date: Mar 2008
Default

How's the project going?

:-)
Reply With Quote
  #7  
Old 11-01-2009, 03:42 PM
KeauHou's Avatar
KeauHou KeauHou is offline
Junior Member
 
Join Date: Oct 2009
Location: In front of my Computer
Default

I don't have much time at the moment
Reply With Quote
  #8  
Old 11-12-2009, 08:57 AM
D.gaine's Avatar
D.gaine D.gaine is offline
Junior Member
 
Join Date: Oct 2009
Location: United States
Default First Verlet Test

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.
Reply With Quote
  #9  
Old 11-12-2009, 02:50 PM
timelimit123's Avatar
timelimit123 timelimit123 is offline
Senior Member
 
Join Date: Aug 2009
Location: qwertyuiopasdfghjkl<zxcvbnm,.-1234567890+´¨'/
Default

Quote:
Originally Posted by D.gaine View Post
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.
no it's not..... also that's pretty off-topic.

back on topic, uh... back on topic!!!
Reply With Quote
  #10  
Old 11-28-2009, 08:44 AM
axcho axcho is offline
Member
 
Join Date: Jun 2007
Default

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.
Reply With Quote
Reply

Tags
beginner, purebasic, test, verlet

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.