playMaker

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

ToxicFrog

  • Beta Group
  • Full Member
  • *
  • Posts: 139
Problem getting Contact Point via Collision Info[SOLVED]
« on: April 10, 2019, 02:07:24 PM »
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 11, 2019, 02:46:20 AM by jeanfabre »

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 150
Re: Problem getting Contact Point via Collision Info
« Reply #1 on: April 10, 2019, 03: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

  • Beta Group
  • Full Member
  • *
  • Posts: 139
Re: Problem getting Contact Point via Collision Info
« Reply #2 on: April 10, 2019, 03:58:57 PM »
Thanks, Daniel

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

I appreciate the response