-Fixed offset not working right on rayCastEntities()
This commit is contained in:
c0508383 committed 2022-07-11 21:16:32 -05:00
1 parent 80916de553
commit b4f112ee89
1 file changed
+1 -1
@@ -408,7 +408,7 @@ public class ScriptWorld implements IWorld {
ArrayList<IEntity> entities = new ArrayList<>();
Vec3 currentPos = Vec3.createVectorHelper(startPos[0], startPos[1], startPos[2]); int rep = 0;
currentPos.addVector(lookVector[0]*offset, lookVector[1]*offset, lookVector[2]*offset);
currentPos = currentPos.addVector(lookVector[0]*offset, lookVector[1]*offset, lookVector[2]*offset);
while (rep++ < maxDistance + 10) {
currentPos = currentPos.addVector(lookVector[0], lookVector[1], lookVector[2]);