API Reference
SpatialAPI
Grids
SpatialAPI.GetGridById()
Get a grid by its ID.
This can be useful for when you already know the specific grid you want to interact with.
SpatialAPI.GetGridById(grid.EntityId);
Returns a IGroupData.
SpatialAPI.GetAllGrids()
Gets all loaded grid groups in the world.
SpatialAPI.GetAllGrids();
Returns an IEnumerable of IGroupData.
GetGridsInBox(BoundingBoxD)
Gets all loaded grid groups in the world that intersect with the given bounding box.
SpatialAPI.GetGridsInBox(new BoundingBoxD(new Vector3D(0, 0, 0), new Vector3D(10, 10, 10)));
Returns an IEnumerable of IGroupData.
GetGridsInSphere(BoundingSphereD)
Gets all loaded grid groups in the world that intersect with the given bounding sphere.
SpatialAPI.GetGridsInSphere(new BoundingSphereD(new Vector3D(0, 0, 0), 10));
Returns an IEnumerable of IGroupData.
GetGridsInOrientedBox(MyOrientedBoundingBoxD)
Gets all loaded grid groups in the world that intersect with the given oriented bounding box.
SpatialAPI.GetGridsInOrientedBox(new MyOrientedBoundingBoxD(new BoundingBoxD(new Vector3D(0, 0, 0), new Vector3D(10, 10, 10)), new MatrixD())
Returns an IEnumerable of IGroupData.
Controlled Entities
SpatialAPI.GetAllControllableEntities()
Gets all controllable entities in the world.
SpatialAPI.GetAllControllableEntities();
Returns an IEnumerable of IControllableEntity.
SpatialAPI.GetControllableEntitiesInBox(BoundingBoxD)
Gets all controllable entities in the world that intersect with the given bounding box.
SpatialAPI.GetControllableEntitiesInBox(new BoundingBoxD(new Vector3D(0, 0, 0), new Vector3D(10, 10, 10)));
Returns an IEnumerable of IControllableEntity.
SpatialAPI.GetControllableEntitiesInSphere(BoundingSphereD)
Gets all controllable entities in the world that intersect with the given bounding sphere.
SpatialAPI.GetControllableEntitiesInSphere(new BoundingSphereD(new Vector3D(0, 0, 0), 10));
Returns an IEnumerable of IControllableEntity.
SpatialAPI.GetControllableEntitiesInOrientedBox(MyOrientedBoundingBoxD)
Gets all controllable entities in the world that intersect with the given oriented bounding box.
SpatialAPI.GetControllableEntitiesInOrientedBox(new MyOrientedBoundingBoxD(new BoundingBoxD(new Vector3D(0, 0, 0), new Vector3D(10, 10, 10)), new MatrixD()));
Returns an IEnumerable of IControllableEntity.