How to use raycast to get position before intersection
-
- Member
- Posts: 159
- Joined: Mon Feb 18, 2019 02:53
- GitHub: LandonAConway
How to use raycast to get position before intersection
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
Re: How to use raycast to get position before intersection
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.
Look at my rcbows mod to get the idea. I get the old_pos there.
Who is online
Users browsing this forum: No registered users and 8 guests