943,819 Members | Top Members by Rank

Ad:
Jul 10th, 2009
0

2d Ball representation

Expand Post »
I am using c++/opengl. Can someone help me with a wrapper
for a 2d ball representation. I have one but its not complete.
I need other stuff like momentum and collision response.
Can you help me implement this?
Similar Threads
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008
Jul 11th, 2009
0

Re: 2d Ball representation

How about a sphere instead? But keep it on a z = 0 plane to keep it 2D.
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
wildgoose is offline Offline
891 posts
since Jun 2009
Jul 12th, 2009
0

Re: 2d Ball representation

well a ball is a sphere and keeping z = 0 will make it a circle.
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008
Jul 14th, 2009
0

Re: 2d Ball representation

Read these articles:

http://chrishecker.com/Rigid_Body_Dynamics

You can probably ignore all of the rotational stuff, since a sphere is rotation-invariant.

You can get away with a very, very simple implementation if you're only considering spheres. But the other stuff in the articles is good, anyway.
Last edited by MattEvans; Jul 14th, 2009 at 3:39 am.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: Is this me or DirectX?
Next Thread in Game Development Forum Timeline: Need 3rd party addon for Director to use 3D realtime





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC