OpenGL Wormhole with bullet physics debris

shomy2k11
Posts: 24
Joined: Thu Sep 08, 2011 1:59 am

OpenGL Wormhole with bullet physics debris

Post by shomy2k11 »

Yes i've got a nice wormhole done for my breakout game but thought it would be cool to have some particles floating around the rim using bullet. Ideas anyone ?
dumbo2007
Posts: 66
Joined: Sun Jan 30, 2011 8:46 pm

Re: OpenGL Wormhole with bullet physics debris

Post by dumbo2007 »

Interesting , lets see

1.Lots of tiny spheres orbiting the center of the wormhole using kepler's laws or simply centrifugal force equations. So you can perhaps calculate the position of the spheres yourself. Then set the positions of the spheres in the Bullet dynamics world. The spheres would be represented by ghost objects or kinematic objects whose position can be set before every time step by the user. I think these objects can collide with other objects (you can control collision between object types using masks , again see manual)


2. You can have the spheres as rigid bodies and simply apply the forces on it before every time step. Let bullet calculate the positions of the spheres. Get the position and render.