playMaker

Author Topic: Problem getting Contact Point via Collision Info[SOLVED]  (Read 172 times)

ToxicFrog

  • Junior Playmaker
  • **
  • Posts: 65
    • View Profile
Problem getting Contact Point via Collision Info[SOLVED]
« on: April 10, 2019, 11:07:24 AM »
Hi Playmakers,
I am using a trigger event to watch for a specific collision tag. When collision happens, I need the Contact Point where the trigger collided with the rigidbody object.
I am only getting 0,0,0 values for the Contact Point and Speed.
I'm sure I'm missing something simple - any help is appreciated!

Image attached showing my setup
« Last Edit: April 10, 2019, 11:46:20 PM by jeanfabre »

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 124
    • View Profile
Re: Problem getting Contact Point via Collision Info
« Reply #1 on: April 10, 2019, 12:52:21 PM »
If I'm not mistaken, using trigger won't give you collision info. You would need to this manually with a raycast or other tricks.

https://stackoverflow.com/questions/31641522/how-to-get-contact-points-from-a-trigger

ToxicFrog

  • Junior Playmaker
  • **
  • Posts: 65
    • View Profile
Re: Problem getting Contact Point via Collision Info
« Reply #2 on: April 10, 2019, 12:58:57 PM »
Thanks, Daniel

I found similar info and am getting the results I need with a Raycast!

I appreciate the response