Class MyGamePruningStructure
Inheritance
System.Object
MyGamePruningStructure
Assembly: Sandbox.Game.dll
Syntax
[MySessionComponentDescriptor]
public sealed class MyGamePruningStructure : MySessionComponentBase, IMyUserInputComponent
Constructors
MyGamePruningStructure()
Declaration
public MyGamePruningStructure()
Properties
Instance
Declaration
public static MyGamePruningStructure Instance { get; }
Property Value
Methods
Add(MyEntity)
Declaration
public static void Add(MyEntity entity)
Parameters
AddEntity(MyEntity)
Declaration
public void AddEntity(MyEntity entity)
Parameters
AnyVoxelMap(ref BoundingBoxD)
Declaration
public bool AnyVoxelMap(ref BoundingBoxD box)
Parameters
Returns
Type |
Description |
System.Boolean |
|
AnyVoxelMapInBox(ref BoundingBoxD)
Declaration
public static bool AnyVoxelMapInBox(ref BoundingBoxD box)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Draw()
Declaration
public override void Draw()
Overrides
GetAllEntities(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public void GetAllEntities(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllEntities(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)
Declaration
public void GetAllEntities(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllEntities(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)
Declaration
public void GetAllEntities(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
GetAllEntities(ref MyOrientedBoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public void GetAllEntities(ref MyOrientedBoundingBoxD obb, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetAllEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllEntitiesInOBB(ref MyOrientedBoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetAllEntitiesInOBB(ref MyOrientedBoundingBoxD obb, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllEntitiesInRay(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)
Declaration
public static void GetAllEntitiesInRay(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
GetAllEntitiesInSphere(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetAllEntitiesInSphere(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllTopMostEntitiesInSphere(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetAllTopMostEntitiesInSphere(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllTopMostStaticEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetAllTopMostStaticEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetAllVoxelMapsInBox(ref BoundingBoxD, List<MyVoxelBase>)
Declaration
public static void GetAllVoxelMapsInBox(ref BoundingBoxD box, List<MyVoxelBase> result)
Parameters
GetAllVoxelMapsInSphere(ref BoundingSphereD, List<MyVoxelBase>)
Declaration
public static void GetAllVoxelMapsInSphere(ref BoundingSphereD sphere, List<MyVoxelBase> result)
Parameters
GetAproximateDynamicClusters(ref BoundingBoxD, Double, List<BoundingBoxD>)
Declaration
public void GetAproximateDynamicClusters(ref BoundingBoxD container, double clusterSize, List<BoundingBoxD> clusters)
Parameters
Type |
Name |
Description |
BoundingBoxD |
container |
|
System.Double |
clusterSize |
|
System.Collections.Generic.List<BoundingBoxD> |
clusters |
|
GetAproximateDynamicClustersForSize(ref BoundingBoxD, Double, List<BoundingBoxD>)
Declaration
public static void GetAproximateDynamicClustersForSize(ref BoundingBoxD container, double clusterSize, List<BoundingBoxD> clusters)
Parameters
Type |
Name |
Description |
BoundingBoxD |
container |
|
System.Double |
clusterSize |
|
System.Collections.Generic.List<BoundingBoxD> |
clusters |
|
GetAproximateDynamicClustersForSizeDebug(ref BoundingBoxD, Double, List<BoundingBoxD>)
Declaration
public static void GetAproximateDynamicClustersForSizeDebug(ref BoundingBoxD container, double clusterSize, List<BoundingBoxD> clusters)
Parameters
Type |
Name |
Description |
BoundingBoxD |
container |
|
System.Double |
clusterSize |
|
System.Collections.Generic.List<BoundingBoxD> |
clusters |
|
GetClosestPlanet(ref BoundingBoxD)
Declaration
public static MyPlanet GetClosestPlanet(ref BoundingBoxD box)
Parameters
Returns
GetClosestPlanet(Vector3D)
Get the closest planet overlapping a position.
This will not return anything if the position is not within the bounding box of the planet.
Declaration
public static MyPlanet GetClosestPlanet(Vector3D position)
Parameters
Type |
Name |
Description |
Vector3D |
position |
position
|
Returns
GetEntityAABB(MyEntity)
Declaration
public static BoundingBoxD GetEntityAABB(MyEntity entity)
Parameters
Returns
GetPlanet(ref BoundingBoxD)
Declaration
public MyPlanet GetPlanet(ref BoundingBoxD box)
Parameters
Returns
GetPlanet(Vector3D)
Declaration
public MyPlanet GetPlanet(Vector3D position)
Parameters
Returns
GetTopMostEntities(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public void GetTopMostEntities(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetTopMostEntities(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)
Declaration
public void GetTopMostEntities(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetTopMostEntities(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)
Declaration
public void GetTopMostEntities(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
GetTopmostEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetTopmostEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetTopMostEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)
Declaration
public static void GetTopMostEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
GetTopmostEntitiesOverlappingRay(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)
Declaration
public static void GetTopmostEntitiesOverlappingRay(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
GetVoxelMaps(ref BoundingBoxD, List<MyVoxelBase>)
Declaration
public void GetVoxelMaps(ref BoundingBoxD box, List<MyVoxelBase> result)
Parameters
GetVoxelMaps(ref BoundingSphereD, List<MyVoxelBase>)
Declaration
public void GetVoxelMaps(ref BoundingSphereD sphere, List<MyVoxelBase> result)
Parameters
GetVoxelMaps(ref LineD, List<MyLineSegmentOverlapResult<MyVoxelBase>>)
Declaration
public void GetVoxelMaps(ref LineD ray, List<MyLineSegmentOverlapResult<MyVoxelBase>> result)
Parameters
GetVoxelMapsOverlappingRay(ref LineD, List<MyLineSegmentOverlapResult<MyVoxelBase>>)
Declaration
public static void GetVoxelMapsOverlappingRay(ref LineD ray, List<MyLineSegmentOverlapResult<MyVoxelBase>> result)
Parameters
Move(MyEntity)
Declaration
public static void Move(MyEntity entity)
Parameters
MoveEntity(MyEntity)
Declaration
public void MoveEntity(MyEntity entity)
Parameters
Remove(MyEntity)
Declaration
public static void Remove(MyEntity entity)
Parameters
RemoveEntity(MyEntity)
Declaration
public void RemoveEntity(MyEntity entity)
Parameters
Simulate()
Declaration
public override void Simulate()
Overrides