playMaker

Author Topic: Collision problems.  (Read 4857 times)

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Collision problems.
« 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!

MkAndersson

  • Guest
Re: Collision problems.
« Reply #1 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.
« Last Edit: June 19, 2012, 08:53:45 AM by MkAndersson »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Collision problems.
« Reply #2 on: June 19, 2012, 09:24:30 AM »
yes, either a character controller or a rigidbody needs to be involved to detect collisions.
« Last Edit: June 19, 2012, 09:26:28 AM by kiriri »
Best,
Sven

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Collision problems.
« Reply #3 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 :(

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Collision problems.
« Reply #4 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.
Best,
Sven

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Collision problems.
« Reply #5 on: June 20, 2012, 04:07:45 AM »
It didnt open in my unity :/

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Collision problems.
« Reply #6 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
« Last Edit: June 20, 2012, 12:09:45 PM by kiriri »
Best,
Sven

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Collision problems.
« Reply #7 on: June 21, 2012, 09:27:13 AM »
i get an itween and other compiler errors :(