Hi all,
I'm quite new in bullet and i've this issue. i have a btRigidBody object (a stick) that i would move/translate by mouse movements to hit other objects in the scene.
Is this possible? Is there a bullet demo that has this featurer?
Alternatively, in broad terms what I should do to achieve this?
Really thank you for help.
Cheers,
Axel
Newbiw issue: how to translate an object to hit other object
-
- Posts: 10
- Joined: Wed Nov 17, 2010 11:35 am
-
- Posts: 43
- Joined: Mon Jan 03, 2011 4:26 pm
Re: Newbiw issue: how to translate an object to hit other ob
I'm also new to Bullet, so these will be very broad terms:spirtaat wrote:Alternatively, in broad terms what I should do to achieve this?
I think you may want a kinematic object. Kinematic objects are controlled by the application and do not move when other objects collide with them, as though they have infinite mass.
However, that also means they might not be stopped by static objects such as walls, so you might want to create a constraint of some kind, maybe a very stiff spring, that is attached to the stick and to the world, and the user can move its world attachment point, and it will drag the stick along with it. With the stick as a dynamic rigid body, it will be stopped by walls or other objects, instead of shoving them out of the way like a freight train.
-
- Posts: 10
- Joined: Wed Nov 17, 2010 11:35 am
Re: Newbiw issue: how to translate an object to hit other ob
Hi lulzfish,
thanks for your helpful answer. Now I'll try to implement your suggestion!
thanks for your helpful answer. Now I'll try to implement your suggestion!