Reply chain from #10
Awesome!
https://youtu.be/Prdu6ntzJHA?si=UlleBmRsfZhaY0Fy
about 3:50 you mentioned the computer has obstacle detection. I assume it’s from your friend’s Metaphysics mod, is that right? can you tell us a bit more about how the obstacle detection works using the mod? I assume you use a raycast but how would you set it up in game? do you need to craft a laser or something?
Obstacle detection is not a metaphysical mod, it can also be done by command_computer alone (commands.getblockinfo), but it is limited in speed (requires a 1tick return result), and my friend’s metaphysical mod has no 1tick limit (instant return result). Detect obstacles: Map the barrel coordinates (calculate the coordinate difference between the bolt and the ship’s center of mass, then use the ship quaternion - rotation coordinate difference, then add to the ship’s world coordinates), fire a laser from the barrel coordinates (fake laser, just the velocity vector xyz, I can get it from the player detector) and use commands.getblockinfo to get the result (wait 1tick), so I switched to my friend’s metaphysical mod and got the result instantly
OH I get it now. Now I understand what you meant by “commands.getblockinfo” you literally draw a line in space and go through the blocks that’s intersecting it
My friend’s metaphysics mod also has this: Player detector without latency
This conversation is on Discord · Reply there