Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: shinodan on June 19, 2012, 04:53:10 AM

Title: Collision problems.
Post by: shinodan on June 19, 2012, 04:53:10 AM
So im making a little 3rd person shooter prototype and the way it works is by shooting a small sphere, the sphere projects correctly but i cant get any object to detect its collision. tried trigger enter and collision enter
and ive tried making the sphere and the target a trigger but nothing, can anyone point me in the right direction why?? thanks!
Title: Re: Collision problems.
Post by: MkAndersson on June 19, 2012, 08:45:34 AM
Have you added a sphere collider to the sphere so it actually has a collision?
By default they don't have any.

edit: ops misread your post. been a while since I did bullets but if I remember correctly I added
a rigid body and turned off gravity + added a collider and that worked.
Title: Re: Collision problems.
Post by: kiriri on June 19, 2012, 09:24:30 AM
yes, either a character controller or a rigidbody needs to be involved to detect collisions.
Title: Re: Collision problems.
Post by: shinodan on June 19, 2012, 09:47:05 AM
hey guys i have a rigid body attached.

on my target i have a simple on trigger enter action on it to test if it picks up the collision, still nothing despite follow your advice :(
Title: Re: Collision problems.
Post by: kiriri on June 19, 2012, 10:51:33 AM
a scene says more than a thousand posts :D
www.twisted-pantheon.com/Downloads/New%20Unity%20Project%204.7z
just start the game and move the left cube around until it hits the other cube. Then there should be both a trigger and a collision event on the fsm of the static  (right ) cube.
Title: Re: Collision problems.
Post by: shinodan on June 20, 2012, 04:07:45 AM
It didnt open in my unity :/
Title: Re: Collision problems.
Post by: kiriri on June 20, 2012, 11:17:27 AM
huh, how do you mean? open the entire folder as a project and make sure you added your own playmaker.dll before opening it.

I used the most recent unity and the most recent (non beta) playmaker
Title: Re: Collision problems.
Post by: shinodan on June 21, 2012, 09:27:13 AM
i get an itween and other compiler errors :(