Box2D Forums

It is currently Wed May 22, 2013 11:00 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Rotating Weapon
PostPosted: Tue Apr 03, 2012 8:20 am 
Offline

Joined: Mon Jan 23, 2012 9:51 am
Posts: 15
Hello guys, thank you for the attention with my previous doubts, my game is nearing completion thanks to you =)

However, I have come across another issue. My main character carries a weapon that he uses to hit enemies, and I intended to make it a static sensor. But, one of the enemies is a static body (its behavior is identical to the one of a vertical moving platform in classic sidescrollers). Since static bodies don't have their collision detected, one of them had to be a dynamic body. Thing is, if one of them is a dynamic body, gravity acts upon them, something I absolutely want to avoid.

Right now, I made the weapon a dynamic body and I am applying a force opposing gravity to solve the issue. Do you have any better suggestions?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Rotating Weapon
PostPosted: Sat Apr 28, 2012 10:45 am 
Offline

Joined: Sat Apr 28, 2012 9:32 am
Posts: 2
What about setting the density to zero?

Greetings
Scarabol


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:
Powered by phpBB® Forum Software © phpBB Group