Jump to content

Recommended Posts

Posted

To go even further, you would need to WORLD PICK from the controllers feet to the ground. This will return a PICKINFO you would be able to get the exact surface. pickinfo.surface:GetMaterial() would get you the material itself. pickinfo.surface:GetMaterial():GetPath() should get the filename itself without going through extra steps.

 

This will not work on terrains.

 

Please click on the links.

 

http://www.leadwerks.com/werkspace/page/api-reference/_/world/worldpick-r502

http://www.leadwerks.com/werkspace/page/api-reference/_/pickinfo/

http://www.leadwerks.com/werkspace/page/api-reference/_/surface/surfacegetmaterial-r212

http://www.leadwerks.com/werkspace/page/api-reference/_/asset/assetgetpath-r41

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...