CollisionDetection.IntersectOB Method

Check intersection between Oriented Bounding Box of two root entities (the entities can be BlockReference), by using SAT algorithm.
Protected Overrides Function IntersectOB( _ 
ByVal ent1 As Entity, _ 
ByVal ent2 As Entity, _ 
ByRef collidedTuple As List(Of Tuple(Of CollisionResultItem, CollisionResultItem)), _ 
ByVal worker As BackgroundWorker, _ 
ByVal doWorkEventArgs As DoWorkEventArgs
) As Boolean
This language is not supported or no code example is available.
protected override bool IntersectOB( 
Entity ent1
Entity ent2
ref List<Tuple<CollisionResultItem, CollisionResultItem>> collidedTuple
BackgroundWorker worker
DoWorkEventArgs doWorkEventArgs 
)
This language is not supported or no code example is available.

Parameters

ent1
Entity

First entity to check

ent2
Entity

second entity to check

collidedTuple
List<Tuple<CollisionResultItem, CollisionResultItem>>

The resulting tuple of the intersecting entity in that Block/BlockReference gerarchy

worker
BackgroundWorker

doWorkEventArgs
DoWorkEventArgs

Return Value

bool

True if at least two OBB intersects each other, false otherwise

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition