Class BoundsOctreeNode<T>
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public class BoundsOctreeNode<T>
Type Parameters
T
- Inheritance
-
BoundsOctreeNode<T>
- Inherited Members
-
Constructors
BoundsOctreeNode(float, float, float, Vector3)
public BoundsOctreeNode(float baseLengthVal, float minSizeVal, float loosenessVal, Vector3 centerVal)
Parameters
baseLengthVal
float
minSizeVal
float
loosenessVal
float
centerVal
Vector3
Properties
BaseLength
public float BaseLength { get; }
Property Value
- float
Center
public Vector3 Center { get; }
Property Value
- Vector3
Methods
Add(T, Bounds)
public bool Add(T obj, Bounds objBounds)
Parameters
obj
T
objBounds
Bounds
Returns
- bool
DrawAllBounds(float)
public void DrawAllBounds(float depth = 0)
Parameters
depth
float
DrawAllObjects()
public void DrawAllObjects()
GetBounds()
public Bounds GetBounds()
Returns
- Bounds
GetColliding(ref Bounds, List<T>)
public void GetColliding(ref Bounds checkBounds, List<T> result)
Parameters
checkBounds
Bounds
result
List<T>
GetColliding(ref Ray, List<T>, float)
public void GetColliding(ref Ray checkRay, List<T> result, float maxDistance = Infinity)
Parameters
checkRay
Ray
result
List<T>
maxDistance
float
HasAnyObjects()
public bool HasAnyObjects()
Returns
- bool
IsColliding(ref Bounds)
public bool IsColliding(ref Bounds checkBounds)
Parameters
checkBounds
Bounds
Returns
- bool
IsColliding(ref Ray, float)
public bool IsColliding(ref Ray checkRay, float maxDistance = Infinity)
Parameters
checkRay
Ray
maxDistance
float
Returns
- bool
Remove(T)
public bool Remove(T obj)
Parameters
obj
T
Returns
- bool
Remove(T, Bounds)
public bool Remove(T obj, Bounds objBounds)
Parameters
obj
T
objBounds
Bounds
Returns
- bool
SetChildren(BoundsOctreeNode<T>[])
public void SetChildren(BoundsOctreeNode<T>[] childOctrees)
Parameters
childOctrees
BoundsOctreeNode<T>[]
ShrinkIfPossible(float)
public BoundsOctreeNode<T> ShrinkIfPossible(float minLength)
Parameters
minLength
float
Returns
- BoundsOctreeNode<T>