Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Physics Simulation Using Verlet Integration [WIP]
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
zero-impact




PostPosted: Sun May 17, 2009 11:23 pm   Post subject: Physics Simulation Using Verlet Integration [WIP]

I am planning on making a complete constraint based rigid and possibly soft body physics engine based on Verlet Integration.
So far I have a fairly complete 2D vector class and a basic particle class with the main integration formula.
I know Turing is a bad choice for this speed wise, but the only other graphics library I am familiar with is SDL, and I don't want to be struggling with both things at the same time.

I am in grade 11 and didn't know the first thing about vectors or anything like that until I started reading about this a few weeks ago.
Everything is based off of the 3D version of this found here.

It is quite boring looking right now. But if anyone with any knowledge about this kind of stuff takes a look at it, I would like to know if I am doing it right Smile

So here it is. The next thing I plan to do is creating a solid object by making simple constraints between the particles.



Verlet.zip
 Description:

Download
 Filename:  Verlet.zip
 Filesize:  1.46 KB
 Downloaded:  348 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
saltpro15




PostPosted: Mon May 18, 2009 3:34 pm   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

cool, hope it goes well
zero-impact




PostPosted: Mon May 18, 2009 3:37 pm   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

Anyone know anything about vectors and such care to comment?
zero-impact




PostPosted: Mon May 18, 2009 9:42 pm   Post subject: Re: Physics Simulation Using Verlet Integration [WIP]

Update

Now with an object class and simple constraints with a small demo.



Verlet.zip
 Description:

Download
 Filename:  Verlet.zip
 Filesize:  2.96 KB
 Downloaded:  144 Time(s)

zero-impact




PostPosted: Tue May 19, 2009 6:09 pm   Post subject: Re: Physics Simulation Using Verlet Integration [WIP]

[Update]

You can now make your own shapes using the shape class using addVertice and addConstraint.
I have also added a rectangle class for easy creation of rectangles.



Verlet.zip
 Description:

Download
 Filename:  Verlet.zip
 Filesize:  4.22 KB
 Downloaded:  209 Time(s)

tenniscrazy




PostPosted: Wed May 20, 2009 11:51 am   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

thats very cool, it seems realistic as far as i can tell with changing what i could make sense of. Is there any way to change the elasticity of the object?

I look forward to the mouse interaction
saltpro15




PostPosted: Wed May 20, 2009 5:15 pm   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

very cool! the frame rate lags just a bit on my computer, not much, but just enough for some trailing to be evident. other than that it's excellent, can't wait for mouse interaction!

ps. hope you're enjoying those 650 bits Wink
zero-impact




PostPosted: Wed May 20, 2009 7:33 pm   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

Right now the constraints act only as infinitely stiff springs.
Sponsor
Sponsor
Sponsor
sponsor
leafs23




PostPosted: Wed May 20, 2009 7:42 pm   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

cool program
singeroi




PostPosted: Sat May 23, 2009 5:09 am   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

make that really really cool im trying it out, good thing i stumbled on this..
simulation assurance vie
zero-impact




PostPosted: Sat May 23, 2009 10:04 am   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

Updated thread is here http://compsci.ca/v3/viewtopic.php?t=21124
katherine04




PostPosted: Thu May 28, 2009 12:05 pm   Post subject: Re: Physics Simulation Using Verlet Integration [WIP]

thanks for the thread, zero-impact! Smile
simulation rachat de credit
cricky




PostPosted: Thu Jul 23, 2009 11:19 am   Post subject: RE:Physics Simulation Using Verlet Integration [WIP]

interesting thanks a lot for this one...


commission de surendettement

- commission de surendettement, vous pouvez demander un dossier de surendettement.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 13 Posts ]
Jump to:   


Style:  
Search: