Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: DeRobbe on September 23, 2014, 04:08:43 PM

Title: 2D Collision of two Sprites without physical effect (only Area collsion)
Post by: DeRobbe on September 23, 2014, 04:08:43 PM
Hello,

i have two Sprites (a Thief and the Field of View of the Camera [the yellow light]) - i would get an event if the Camera see the Thief. The Camera and the Thief is moving.

Also i need a collision detection. But it the Playmaker 2D Collision dont work by me without Rigidbody. And with Rigidbody kick the light the Thief away.

With Trigger it donst always work.

(http://static.allmystery.de/upics/c42c4a_Unbenannt-1.png)

Please help how i can fix it.

Thanks!
Title: Re: 2D Collision of two Sprites without physical effect (only Area collsion)
Post by: PaulH on September 23, 2014, 06:05:13 PM
hi
have you tried raycasting?

http://unity3d.com/learn/tutorials/modules/beginner/physics/raycasting

cheers

Paul
Title: Re: 2D Collision of two Sprites without physical effect (only Area collsion)
Post by: DeRobbe on September 24, 2014, 09:02:14 AM
@elusive52

Hi,

Thanks for your Tip - i try it out.
Title: Re: 2D Collision of two Sprites without physical effect (only Area collsion)
Post by: DeRobbe on September 24, 2014, 02:20:09 PM
@elusive52

Hi,

yes it works - thank you!
Title: Re: 2D Collision of two Sprites without physical effect (only Area collsion)
Post by: PaulH on September 25, 2014, 07:54:34 AM
you're most welcome!