playMaker

Author Topic: Collision Error  (Read 752 times)

basonliew

  • Playmaker Newbie
  • *
  • Posts: 3
Collision Error
« on: June 19, 2020, 03:51:09 AM »
Hi all, this is my first time posting and a newbie with PlayMaker so please bear with me  :D I am trying to do a simple collision detection but kept getting the error message "GameObject requires Rigidbody/Collider!" whenever I tried adding the Collision Event... I have already added Collider to all the objects and also Rigidbody to the current object. Does any come across this issue or was it some wrong setting?
 


Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Collision Error
« Reply #1 on: June 19, 2020, 06:05:35 AM »
Welcome :)

Physics components can be default (e.g. "collider"), or 2D (e.g. "collider2d"). You're currently mixing them. If you use 2D, then you also need to use the 2D actions, or when you use the default version, likewise the matching actions. This is true for all physics components and actions -- including overlap spheres, triggers, raycasts etc.