some noob questions

mohamed
Posts: 15
Joined: Sun Jun 23, 2013 3:41 am

some noob questions

Post by mohamed »

Hi,

as I'm still new to bullet (and this is my first post), wanted to ask some questions and hope somebody help me

1- I use a lot of triangle mesh shapes, I've tried btBvhTriangleMeshShape but it is for static mesh only,what is the method to do a dynamic one?

2- a simple example of multi threaded "world options" as the hello world simply tells methods for only single threaded as written I guess

3- I will apply "some forces,torque" on my rigid bodies, should I do (each time step) :

body->applyCentralForce (force);
body->applyTorque (torque);

or clear the forces each step (before applying new forces)

thanks in advance
mohamed
Posts: 15
Joined: Sun Jun 23, 2013 3:41 am

Re: some noob questions

Post by mohamed »

so I guess no one knows :S? at least I want to know the first question answer please as this is critical right now
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: some noob questions

Post by xexuxjy »

For a dynamic mesh you might be best looking at the GImpact shapes / demo.

wrt applying forces - it depends, you shouldn't need to clear them down each frame (bullet should do that), just apply any new forces depending on your control model.

the multithreaded stuff - apart from the MultiThreadedDemo I don't think theres much in the way of other examples.
mohamed
Posts: 15
Joined: Sun Jun 23, 2013 3:41 am

Re: some noob questions

Post by mohamed »

well thanks a lot for the reply :D
this makes much more sense now,as I was searching in the shapes folder only "which wasn't containing the gimpact stuff"

now a single rising question, does gimpact shapes collide with everything? like normal shapes "static and dynamic,kinematic"