playMaker

Author Topic: Get Collision Info gives no material name back  (Read 1462 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Get Collision Info gives no material name back
« on: October 05, 2018, 11:53:50 AM »
As per title: it's not giving back anything as you can see in the image.
The collider is without a doubt touching the terrain, and the terrain has a "Terrain Moon 1" physics material applied to it.

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 150
Re: Get Collision Info gives no material name back
« Reply #1 on: October 05, 2018, 08:27:15 PM »
Didn't check myself, but are you sure it's not checking of the wheel-object has a material? If you add a material to the wheel does it show up in the action?

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Get Collision Info gives no material name back
« Reply #2 on: October 06, 2018, 08:26:57 AM »
Of course the WHEEL COLLIDER has a material WHEEL TIRE applied  ;)
Also, from a GET COLLISION INFO thing I would expect data coming from a collision event, not to get the physics material of the object I am checking, thing that I can find with GET PROPERTY and other ways.
« Last Edit: October 06, 2018, 08:08:03 PM by megmaltese »

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 150
Re: Get Collision Info gives no material name back
« Reply #3 on: October 07, 2018, 09:14:08 AM »
I did a quick test in a new scene and it worked, so not sure what is going on. My test was just two new cube objects with a physics material, rigidbody added and one of them have an FSM. FSM has 'collision event, on enter' which goes to a new state with the 'collision info' which showed me the object collided with and it's material.
So the action seem to work as intended. Maybe you could post your game object setup and the collision event state.

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Get Collision Info gives no material name back
« Reply #4 on: October 07, 2018, 10:57:02 AM »
Thank you for helping, I'll try to replicate your set up and see if I can track down the problem  :)