Click or drag to resize
CollisionDetectorCheckCollision Method (GraphicComponent, GraphicComponent, Double, DetectableUsage, Boolean, Part, Part)
Calculates whether two objects intersect, or whether an object intersects any other object, and returns the intersecting Parts.

Namespace:  ABB.Robotics.RobotStudio.Stations
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public static CollisionType CheckCollision(
	GraphicComponent object1,
	GraphicComponent object2,
	double nearMiss,
	DetectableUsage detectableUsage,
	bool excludeInvisible,
	out Part part1,
	out Part part2
)

Parameters

object1
Type: ABB.Robotics.RobotStudio.StationsGraphicComponent
First object.
object2
Type: ABB.Robotics.RobotStudio.StationsGraphicComponent
Second object.
nearMiss
Type: SystemDouble
Near miss distance.
detectableUsage
Type: ABB.Robotics.RobotStudio.StationsDetectableUsage
Specifies how the Detectable property is used when checking for collision between two GraphicComponents.
excludeInvisible
Type: SystemBoolean
Do not include invisible objects when checking for collision.
part1
Type: ABB.Robotics.RobotStudio.StationsPart
Part in first object.
part2
Type: ABB.Robotics.RobotStudio.StationsPart
Part in second object.

Return Value

Type: CollisionType
A value indicating whether the objects collide or are closer than the near miss distance.
Remarks
If either object1 or object2 is NULL, it is checked against all other objects in the stations.
Version Information

Supported in: 1.0.0.0
See Also