refactor recast pathfinding classes
This commit is contained in:
parent
e489def162
commit
73d07b8941
@ -1650,6 +1650,7 @@ Block chunk memory pooling
|
|||||||
Rename MoveToTree
|
Rename MoveToTree
|
||||||
Major pathfinding work -- breaking MoteToTree
|
Major pathfinding work -- breaking MoteToTree
|
||||||
Pathfinding tiling work
|
Pathfinding tiling work
|
||||||
|
Refactor recast pathfinding classes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import electrosphere.server.ai.blackboard.BlackboardKeys;
|
|||||||
import electrosphere.server.ai.nodes.AITreeNode;
|
import electrosphere.server.ai.nodes.AITreeNode;
|
||||||
import electrosphere.server.datacell.Realm;
|
import electrosphere.server.datacell.Realm;
|
||||||
import electrosphere.server.datacell.interfaces.PathfindingManager;
|
import electrosphere.server.datacell.interfaces.PathfindingManager;
|
||||||
import electrosphere.server.pathfinding.PathingProgressiveData;
|
import electrosphere.server.pathfinding.recast.PathingProgressiveData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A node that performs pathfinding
|
* A node that performs pathfinding
|
||||||
|
|||||||
@ -39,8 +39,8 @@ import electrosphere.server.datacell.interfaces.VoxelCellManager;
|
|||||||
import electrosphere.server.datacell.physics.PhysicsDataCell;
|
import electrosphere.server.datacell.physics.PhysicsDataCell;
|
||||||
import electrosphere.server.entity.ServerContentManager;
|
import electrosphere.server.entity.ServerContentManager;
|
||||||
import electrosphere.server.entity.serialization.ContentSerialization;
|
import electrosphere.server.entity.serialization.ContentSerialization;
|
||||||
import electrosphere.server.pathfinding.NavMeshConstructor;
|
import electrosphere.server.pathfinding.recast.NavMeshConstructor;
|
||||||
import electrosphere.server.pathfinding.Pathfinder;
|
import electrosphere.server.pathfinding.recast.Pathfinder;
|
||||||
import electrosphere.server.physics.block.manager.ServerBlockManager;
|
import electrosphere.server.physics.block.manager.ServerBlockManager;
|
||||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||||
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
|
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
package electrosphere.server.pathfinding;
|
package electrosphere.server.pathfinding.recast;
|
||||||
|
|
||||||
import org.joml.Vector3d;
|
import org.joml.Vector3d;
|
||||||
import org.recast4j.detour.MeshData;
|
import org.recast4j.detour.MeshData;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package electrosphere.server.pathfinding;
|
package electrosphere.server.pathfinding.recast;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package electrosphere.server.pathfinding;
|
package electrosphere.server.pathfinding.recast;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package electrosphere.server.pathfinding;
|
package electrosphere.server.pathfinding.recast;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||||
@ -11,6 +11,7 @@ import org.recast4j.recast.RecastBuilder.RecastBuilderResult;
|
|||||||
import org.recast4j.recast.geom.SingleTrimeshInputGeomProvider;
|
import org.recast4j.recast.geom.SingleTrimeshInputGeomProvider;
|
||||||
|
|
||||||
import electrosphere.entity.state.collidable.TriGeomData;
|
import electrosphere.entity.state.collidable.TriGeomData;
|
||||||
|
import electrosphere.server.pathfinding.recast.NavMeshConstructor;
|
||||||
import electrosphere.test.annotations.UnitTest;
|
import electrosphere.test.annotations.UnitTest;
|
||||||
import electrosphere.util.math.GeomUtils;
|
import electrosphere.util.math.GeomUtils;
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user