Class BoundsBlocker
A manually placed blocker that obstructs a defined world-space bounding box.
public class BoundsBlocker : Blocker, IBlocker
- Inheritance
-
BoundsBlocker
- Implements
- Inherited Members
Constructors
BoundsBlocker(GridWorld, FixedBoundBox, bool, bool)
Initializes a new bounds blocker bound to the supplied world.
public BoundsBlocker(GridWorld world, FixedBoundBox blockBounds, bool isActive = true, bool cacheCoveredVoxels = false)
Parameters
worldGridWorldThe world whose grids this blocker should affect.
blockBoundsFixedBoundBoxThe bounding box to block.
isActiveboolFlag whether or not blocker is active.
cacheCoveredVoxelsboolFlag whether or not to cache covered voxels.
BoundsBlocker(GridWorld, Vector3d, Vector3d, bool, bool)
Initializes a new bounds blocker from world-space min/max bounds.
public BoundsBlocker(GridWorld world, Vector3d boundsMin, Vector3d boundsMax, bool isActive = true, bool cacheCoveredVoxels = false)
Parameters
worldGridWorldThe world whose grids this blocker should affect.
boundsMinVector3dThe world-space minimum bound.
boundsMaxVector3dThe world-space maximum bound.
isActiveboolFlag whether or not blocker is active.
cacheCoveredVoxelsboolFlag whether or not to cache covered voxels.
Methods
GetBoundsMax()
Gets the max bounds of the area to block. Must be implemented by subclasses.
protected override Vector3d GetBoundsMax()
Returns
- Vector3d
GetBoundsMin()
Gets the min bounds of the area to block. Must be implemented by subclasses.
protected override Vector3d GetBoundsMin()
Returns
- Vector3d