Jump to content

Raycasts in Leadwerks


Go to solution Solved by macklebee,

Recommended Posts

Posted

Hello everyone, 

I'm trying to create a raycast for my game in order to play specific sound files depending on what material the player is walking on. I have been unable to successfully create a simple raycast and have no idea where to start. Is there a simple tutorial anywhere to create a raycast on a 3D object in Lua?

Posted

Thank you, Genebris's script would be a perfect reference for what I am trying to achieve.

 

Genebris if you read this, then thank you so much! I would be totally lost without your script! :)

Posted

I'm also having trouble with landing sounds. I just can't get it to play at the correct time. Other people suggested using a raycast to achieve this, but that's where I get lost. :(

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...