Table of Contents

Class BoundsOctree<T>

Namespace
Global
Assembly
Assembly-CSharp.dll
public class BoundsOctree<T>

Type Parameters

T
Inheritance
BoundsOctree<T>
Inherited Members

Constructors

BoundsOctree(float, Vector3, float, float)

public BoundsOctree(float initialWorldSize, Vector3 initialWorldPos, float minNodeSize, float loosenessVal)

Parameters

initialWorldSize float
initialWorldPos Vector3
minNodeSize float
loosenessVal float

Properties

Count

public int Count { get; }

Property Value

int

Methods

Add(T, Bounds)

public void Add(T obj, Bounds objBounds)

Parameters

obj T
objBounds Bounds

DrawAllBounds()

public void DrawAllBounds()

DrawAllObjects()

public void DrawAllObjects()

GetColliding(List<T>, Bounds)

public void GetColliding(List<T> collidingWith, Bounds checkBounds)

Parameters

collidingWith List<T>
checkBounds Bounds

GetColliding(List<T>, Ray, float)

public void GetColliding(List<T> collidingWith, Ray checkRay, float maxDistance = Infinity)

Parameters

collidingWith List<T>
checkRay Ray
maxDistance float

GetMaxBounds()

public Bounds GetMaxBounds()

Returns

Bounds

IsColliding(Bounds)

public bool IsColliding(Bounds checkBounds)

Parameters

checkBounds Bounds

Returns

bool

IsColliding(Ray, float)

public bool IsColliding(Ray checkRay, float maxDistance)

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