playMaker

Author Topic: Help! Shooting 2d projectiles/bullets go through walls. [SOLVED]  (Read 4026 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Going by recent official playmaker video tutorials on making a shooting game, I used the same actions for a 2d game. Problem is when my character shoots, the object/prefab goes through objects.

How do I fix that?
« Last Edit: June 17, 2014, 09:02:12 PM by Alex Chouls »

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618

ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Re: Help! Shooting 2d projectiles/bullets go through walls.
« Reply #2 on: June 15, 2014, 05:15:03 PM »
Stupid question but... do they both have a collider? if one of them doesnt,it will go trough.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Help! Shooting 2d projectiles/bullets go through walls.
« Reply #3 on: June 16, 2014, 09:04:47 PM »
Stupid question but... do they both have a collider? if one of them doesnt,it will go trough.

I see. Yes there is. Why? Does if have to do with triggers? Or should I just have the mesh instead of a invisible cube?

ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Re: Help! Shooting 2d projectiles/bullets go through walls.
« Reply #4 on: June 17, 2014, 08:04:55 AM »
If both have a collider..than they should not be able to go trough...
If you want something to get destroyed,you probably need to call/look for collider hit.

The collider needs to be on the main object that you are shooting(no child).

Apart from that,i cant really help unles we ccan see what you have set up.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Help! Shooting 2d projectiles/bullets go through walls.
« Reply #5 on: June 17, 2014, 08:58:03 PM »
Works now, how I solved was to parent or put the image quad inside of a invisible box.