2d Ball representation

Reply

Join Date: Dec 2008
Posts: 1,162
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 145
firstPerson's Avatar
firstPerson firstPerson is offline Offline
Veteran Poster

2d Ball representation

 
0
  #1
Jul 10th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: 2d Ball representation

 
0
  #2
Jul 11th, 2009
How about a sphere instead? But keep it on a z = 0 plane to keep it 2D.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,162
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 145
firstPerson's Avatar
firstPerson firstPerson is offline Offline
Veteran Poster

Re: 2d Ball representation

 
0
  #3
Jul 12th, 2009
well a ball is a sphere and keeping z = 0 will make it a circle.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: 2d Ball representation

 
0
  #4
Jul 14th, 2009
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.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC