How to use raycast to get position before intersection

Post Reply
LC Creations
Member
Posts: 159
Joined: Mon Feb 18, 2019 02:53
GitHub: LandonAConway

How to use raycast to get position before intersection

by LC Creations » Post

So, I know that in minetest you can use raycast. What know is that raycast returns false if between the two positions you provide there is a node that cuts off the players further visibility. I want to get the node pos before the other node that cuts off the players visibility so I can manipulate that position. I'm planning on getting all objects in a radius in that position.
cdb_ac3a146dcafb

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: How to use raycast to get position before intersection

by runs » Post

This is easy: take always in the loop the old previous node.

Look at my rcbows mod to get the idea. I get the old_pos there.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests