Click or drag to resize

DynamicTreeBroadPhase Class

The broad-phase is used for computing pairs and performing volume queries and ray casts. This broad-phase does not persist pairs. Instead, this reports potentially new pairs. It is up to the client to consume the new pairs and to track subsequent overlap.
Inheritance Hierarchy
SystemObject
  Internal.tainicom.Aether.Physics2D.CollisionDynamicTreeBroadPhase

Namespace:  Internal.tainicom.Aether.Physics2D.Collision
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class DynamicTreeBroadPhase : IBroadPhase

The DynamicTreeBroadPhase type exposes the following members.

Constructors
  NameDescription
Public methodDynamicTreeBroadPhase
Constructs a new broad phase based on the dynamic tree implementation
Top
Properties
  NameDescription
Public propertyProxyCount
Get the number of proxies.
Public propertyTreeBalance
Gets the balance of the tree.
Public propertyTreeHeight
Gets the height of the tree.
Public propertyTreeQuality
Get the tree quality based on the area of the tree.
Top
Methods
  NameDescription
Public methodAddProxy
Create a proxy with an initial AABB. Pairs are not reported until UpdatePairs is called.
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
Get the AABB for a proxy.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetProxy
Get user data from a proxy. Returns null if the id is invalid.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveProxy
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 methodRemoveProxy
Destroy a proxy. It is up to the client to remove any pairs.
Public methodSetProxy
Public methodShiftOrigin
Public methodTestOverlap
Test overlap of fat AABBs.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTouchProxy
Public methodUpdatePairs
Update the pairs. This results in pair callbacks. This can only add pairs.
Top
Extension Methods
See Also