playMaker

Author Topic: Get Terrain Texture Name At Game Object Position  (Read 6158 times)

terri

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
    • terrivellmann.tumblr.com
Re: Get Terrain Texture Name At Game Object Position[SOLVED]
« Reply #15 on: March 04, 2017, 05:07:36 PM »
I felt like I had dealt with this on a project and found this action, tweaked from Dev_Seba's action.
Not 100% sure though but maybe its what you're looking for?

« Last Edit: March 15, 2017, 10:47:11 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: Get Terrain Texture Name At Game Object Position
« Reply #16 on: March 05, 2017, 11:56:05 PM »
Hi,

 you need to do a ray cast in the down direction, then you will hit the terrain, which will give you access to the gameobject, and then you can query for it name.

 have you tried this?

 Bye,

 Jean

Krillan87

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: Get Terrain Texture Name At Game Object Position
« Reply #17 on: March 10, 2017, 12:54:10 PM »
Hi!

Yes a combination of your two solutions worked. Used the other action to specifyy the gameobject and a regular raycast to store the terrain.