playMaker

Author Topic: Detect Physical Materials  (Read 2023 times)

liero116

  • Playmaker Newbie
  • *
  • Posts: 21
Detect Physical Materials
« on: June 05, 2014, 02:37:26 AM »
So I'm using a Raycast on a character of mine to detect whether theyre grounded or not.  That's working just fine.  What I'd like to do is to have the same Raycast output the name of the physical material they are colliding with.  I'm doing this to play different footstep sounds based on the type of surface they are touching.

How can this be done?

stigma

  • Full Member
  • ***
  • Posts: 177
Re: Detect Physical Materials
« Reply #1 on: June 23, 2014, 04:14:10 AM »
Hi,
I need too !!!
Thanks

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Detect Physical Materials
« Reply #2 on: July 23, 2014, 02:57:24 PM »
i'm wondering the same

i'm using tags instead of material physics and depending on the tag i can pop sounds of corresponding material.

i have not found yet the way to synchronise footsteps and sounds, i espected using the speed of the characters to do something with but it need an inversed time or something i didn't get yet