Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Jun 15, 2012 3:19 am 
Offline

Joined: Fri Dec 10, 2010 3:39 am
Posts: 15
So now I'm trying to implement a simple gun. I do a raycast as per the wiki to figure out which object I've hit, then I cast the collision shape to a rigid body and apply an impulse. The way my little demo is set up is that a stack of boxes fall in place when the program starts. So while these boxes are active, I can shoot them just fine. But when they settle and deactivate, I can no longer shoot them! It's like the raycast ignores deactivated objects...?

Is there a way around that?


Top
 Profile  
 
PostPosted: Fri Jun 15, 2012 10:02 pm 
Offline

Joined: Fri Dec 10, 2010 3:39 am
Posts: 15
Oh duh it still registers the collision, the impulse just doesn't have any effect on an inactive object. So I have to manually activate it.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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