Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PolyMad on October 05, 2018, 11:53:50 AM

Title: Get Collision Info gives no material name back
Post by: PolyMad 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.
Title: Re: Get Collision Info gives no material name back
Post by: DanielThomas 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?
Title: Re: Get Collision Info gives no material name back
Post by: PolyMad 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.
Title: Re: Get Collision Info gives no material name back
Post by: DanielThomas 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.
Title: Re: Get Collision Info gives no material name back
Post by: PolyMad 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  :)