Basic working..
Posted: Sun Oct 13, 2013 5:43 am
I just started studying bullet..and faced some block..
Below is what I understood way to work..
1. make dynamic world with setting
2. Add rigid bodies
3. step simulate
4. get rigid body state and use it
5. goto 3
Problem is..How can I identify body what I want to know..?
For example
I added rigid bodies, 'car', 'ball', 'dog' ..
and step simulate..
then I want to know state of 'ball'..
then...How can I get specific 'ball' rigid body from world which contains all bodies. ?
Below is what I understood way to work..
1. make dynamic world with setting
2. Add rigid bodies
3. step simulate
4. get rigid body state and use it
5. goto 3
Problem is..How can I identify body what I want to know..?
For example
I added rigid bodies, 'car', 'ball', 'dog' ..
and step simulate..
then I want to know state of 'ball'..
then...How can I get specific 'ball' rigid body from world which contains all bodies. ?