playMaker

Author Topic: [SOLVED] Collision Object  (Read 2550 times)

nabilfx

  • Full Member
  • ***
  • Posts: 186
[SOLVED] Collision Object
« on: December 30, 2014, 11:53:02 AM »
how i can enable, collision for 2 object specific, without afecting the other objects?
« Last Edit: December 30, 2014, 03:54:53 PM by Lane »

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Collision Object
« Reply #1 on: December 30, 2014, 12:15:59 PM »
I'm not sure if I understand the question but you use tags to isolate objects-

So set the two objects to the same tag that the collision event is looking for-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Collision Object
« Reply #2 on: December 30, 2014, 02:18:58 PM »
i put an image for you understand.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Collision Object
« Reply #3 on: December 30, 2014, 02:32:24 PM »
Change the collision matrix so the Layer for the bullets does not collide with the Layer for the wall you want it to go through.

http://docs.unity3d.com/Manual/LayerBasedCollision.html
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Collision Object
« Reply #4 on: December 30, 2014, 02:57:39 PM »
Thank you very, very much, works great!!!!