Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 21, 2011 4:46 pm 
Offline

Joined: Wed Nov 17, 2010 11:35 am
Posts: 10
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


Top
 Profile  
 
PostPosted: Fri Jan 21, 2011 5:00 pm 
Offline

Joined: Mon Jan 03, 2011 4:26 pm
Posts: 43
spirtaat wrote:
Alternatively, in broad terms what I should do to achieve this?

I'm also new to Bullet, so these will be very broad terms:
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.


Top
 Profile  
 
PostPosted: Sat Jan 22, 2011 7:56 am 
Offline

Joined: Wed Nov 17, 2010 11:35 am
Posts: 10
Hi lulzfish,
thanks for your helpful answer. Now I'll try to implement your suggestion!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group