Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: basonliew on June 19, 2020, 03:51:09 AM

Title: Collision Error
Post by: basonliew 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?
 

Title: Re: Collision Error
Post by: Thore 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.