appCcdPhysicsDemo, bullet-through-paper

Post Reply
~MyXa~
Posts: 4
Joined: Wed Apr 26, 2006 12:35 pm

appCcdPhysicsDemo, bullet-through-paper

Post by ~MyXa~ »

Hi!

I've changed CcdPhysicsDemo\CcdPhysicsDemo.cpp, line 579 from
float speed = 40.f;
to
float speed = 120.f;
and see bullet-through-paper effect. Why?

Thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4244
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Post by Erwin Coumans »

There is an updated version that shows very basic CCD.
The method used in Extras\PhysicsInterface\CcdPhysics\CcdPhysicsEnvironment.cpp is very basic.
See the Win32 demo here:
http://www.continuousphysics.com/ftp/pu ... 2-demo.zip

Or get the latest sources from http://bullet.sourceforge.net

Erwin
~MyXa~
Posts: 4
Joined: Wed Apr 26, 2006 12:35 pm

CCD mode rocks!

Post by ~MyXa~ »

Cool demo!

P.S. I found out that "const int numObjects = 240;" needs huge amount of stack memory when LCP is turning off. /STACK linker option helps.
amirishere
Posts: 7
Joined: Wed Mar 26, 2008 9:26 am

Re: appCcdPhysicsDemo, bullet-through-paper

Post by amirishere »

I still can't get get CCD. It goes through at 370 or so initial speed. I have got the bullet 2.67. Is there anything special I have to do when running the application to get results. note I have already tried pressing '1'.
amirishere
Posts: 7
Joined: Wed Mar 26, 2008 9:26 am

Re: appCcdPhysicsDemo, bullet-through-paper

Post by amirishere »

Ok I saw previously posted example and yes it does work. is the appccdphysicsDemo broken?
User avatar
Erwin Coumans
Site Admin
Posts: 4244
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: appCcdPhysicsDemo, bullet-through-paper

Post by Erwin Coumans »

amirishere wrote:Ok I saw previously posted example and yes it does work. is the appccdphysicsDemo broken?
btContinuousDynamicsWorld is currently not activated, we are working on this. The CcdDemo is using btDiscreteDynamicsWorld, hence the issue. There is a continuous collision detection query, but response is work-in-progress.

We will let you know once this has been sorted,
Erwin
Oogst
Posts: 25
Joined: Thu Apr 10, 2008 11:19 am
Location: Utrecht, Netherlands
Contact:

Re: appCcdPhysicsDemo, bullet-through-paper

Post by Oogst »

I saw in the todo-list that this is still there, is there some planning for when full CCD is possibly again? It is a wonderful feature, so I would like to experiment with it!
Post Reply