Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pos = car:getpos();
- local dir = car:get_look_dir()
- pos.x = pos.x + dir.x;
- pos.z = pos.z + dir.z;
- if (minetest.env:get_node(pos).name ~= "air") then
- -- Object will collide.
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement