#Shoot rays as a carpet
1 messages · Page 1 of 1 (latest)
u could be inefficient
and loop from left to right
with a spacer of smth like 0.05
Wait I'll make a paint image
well, just shoot all the rays, all of them just slighty more to the left or right
with a slight increase
maybe 0.25 or 0.125
they prob got a vector for the direction
and u learned in math how to work with vectors
Yeah, Location#getDirection
yea
and u can prob modify that direction
to add a bit more
in your desired direction
left to right is because I couldn't really display it in 3D using paint
however I just needed the general idea
for(double yaw = minYaw; yaw < maxYaw; yaw += step) {
for(double pitch = minPitch; pitch < maxPitch; pitch += step) {
Location loc = start.clone();
loc.setYaw(log.getYaw() + yaw);
loc.setPitch(loc.getPitch() + pitch);
}
}
that would work, right?
prob <= maxYaw
ofc
It's meant to mostly be quality over efficiency rn
Just want to make a nice effect, not really meant to be used
Yeah it works
ye ye
Getting it to look like I want it to look
then I'll send
(Spawning particles rn as a placeholder so you can see the rays)
@fossil swallow
Made it short since windows rec makes huge files
those 3 seconds where 4.61MB
cool