CollisionEvent for unserdefined Collisiondetectors

Hy,

I have a Layout where I have definded some working collisiondetectors over UI. → Works fine :slight_smile:
image

I try to capture the “CollisionDetected”-Event for all these Collisiondetectors.

How can I find and access these userdefined Collisiondetectors (and subscribe for these events) over .Net Api?

For recommendations I would be happy. :slight_smile:

Thx & Regards
Feature

The answer is IDetectorManager.

Regards
Feature

Hy,

I try to set:
image

by:
VisualComponents.UX.Shared.MenuCommands.CollisionDetection.IDetectorManager.IsActive = true;

but nothing happen…

What I have to do that this checkbox will be active like in screenshot?

I’m using VC 4.5 Premium.

Thx & Regards
Feature

1 Like

The answer is:

IApplication.IsCollisionDetectionActivated = true;

Regards
Feature

1 Like

How about to activate/deactivate “Stop on collision” checkbox ?

Hello, I would like to ask. I used your code and executed the simulation but it seems that the check box is checked but the collision detection is not executed in the simulation environment. Do I need to use any update

Thank You

Hy,

did you create at least one valid CollisionDetector, this code shows only how to activate CollisionDetection?

Regards