playMaker

Author Topic: Playmaker Collision Detection & 2D toolkit  (Read 5691 times)

gnetro

  • Playmaker Newbie
  • *
  • Posts: 7
Playmaker Collision Detection & 2D toolkit
« on: August 05, 2013, 10:03:15 AM »
How does collision work exactly? I'm designing a 2d level and my character will push the box(sprite from 2d toolkit). When im colliding with the box and check the FSM states, it does not collision detection. But when I drop the box over player... the collision detection activates.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Playmaker Collision Detection & 2D toolkit
« Reply #1 on: August 05, 2013, 11:54:14 AM »
The collision has three features, onCollisionEnter, OnCollisionStay and OnCollisionExit so you might have it on Enter right now which is activating the collision when it falls in.

https://hutonggames.fogbugz.com/default.asp?W128
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

gnetro

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker Collision Detection & 2D toolkit
« Reply #2 on: August 05, 2013, 12:26:04 PM »
I tried to change but it is still the same. I don;t know why the there's only point of the box that detect collision.

Not Colliding


Colliding (this is when the box drop from above and I collide it when this is the angle)
« Last Edit: August 05, 2013, 12:31:57 PM by gnetro »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Playmaker Collision Detection & 2D toolkit
« Reply #3 on: August 05, 2013, 01:38:40 PM »
Okay this may be in the 2d toolkit. I would try taking away the collisions on the sprite itself and attaching the sprite to a square with the renderer turned off. Or playing with the collider on the 2dtoolkit settings.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

gnetro

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker Collision Detection & 2D toolkit
« Reply #4 on: August 05, 2013, 01:45:39 PM »
this is also my issue when i'm using uni2d...

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Playmaker Collision Detection & 2D toolkit
« Reply #5 on: August 05, 2013, 07:06:20 PM »
You tried switching it all to Uni2D and you still have the same issue? Did you try placing the sprite as a child onto a empty box collider?
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

gnetro

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker Collision Detection & 2D toolkit
« Reply #6 on: August 05, 2013, 10:33:33 PM »
I did that but the object lost the physics like gravity.

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: Playmaker Collision Detection & 2D toolkit
« Reply #7 on: August 06, 2013, 03:01:47 PM »
i use 2dTK and not have a problem with collision.
Maybe your problem is in 2dTK...see the documentation of they. And send here the image how you set.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Playmaker Collision Detection & 2D toolkit
« Reply #8 on: August 06, 2013, 07:47:48 PM »
well it would lose the gravity if the new object doesn't have a rigidbody attached to it so if you add that it will fall again.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: Playmaker Collision Detection & 2D toolkit
« Reply #9 on: August 06, 2013, 11:19:22 PM »
Yes is true.
Wainting the image of your setup so can help you

gnetro

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker Collision Detection & 2D toolkit
« Reply #10 on: August 07, 2013, 02:22:37 PM »
i'll try to post it later i'm a bit busy... on something..