Click or drag to resize

DynamicTreeT Methods

The DynamicTreeT generic type exposes the following members.

Methods
  NameDescription
Public methodAddProxy
Create a proxy in the tree as a leaf node. We return the index of the node instead of a pointer so that we can grow the node pool. ///
Public methodComputeHeight
Compute the height of the entire tree.
Public methodComputeHeight(Int32)
Compute the height of a sub-tree.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFatAABB(Int32)
Get the fat AABB for a proxy.
Public methodGetFatAABB(Int32, AABB)
Get the fat AABB for a proxy.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUserData
Get proxy user data.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveProxy
Move a proxy with a swepted AABB. If the proxy has moved outside of its fattened AABB, then the proxy is removed from the tree and re-inserted. Otherwise the function returns immediately.
Public methodQuery
Query an AABB for overlapping proxies. The callback class is called for each proxy that overlaps the supplied AABB.
Public methodRayCast
Ray-cast against the proxies in the tree. This relies on the callback to perform a exact ray-cast in the case were the proxy contains a Shape. The callback also performs the any collision filtering. This has performance roughly equal to k * log(n), where k is the number of collisions and n is the number of proxies in the tree.
Public methodRebuildBottomUp
Build an optimal tree. Very expensive. For testing.
Public methodRemoveProxy
Destroy a proxy. This asserts if the id is invalid.
Public methodSetUserData
Set proxy user data.
Public methodShiftOrigin
Shift the origin of the nodes
Public methodTestFatAABBOverlap
Test overlap of fat AABBs.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validate this tree. For testing.
Public methodValidateMetrics
Public methodValidateStructure
Top
Extension Methods
See Also