Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Robot Studio SDK, Collision detection
Spawn14
✭
in RobotStudio
Hello, does anyone know whether it is possible to determine which body of the part caused the collision in the event of a collision?
Tagged:
0
Answers
-
Hello, I've solved it - if anyone is interested.Short form: Robotstudio only returns the two parts.But you can use the function:IGfxGeoShape shape1 = (IGfxGeoShape) .propInfo.getValue (Part)to get the shapes of two bodies and then use the functionresult = ApiServices.Graphics.CollisionDetector.Intersect (shape1, Part1.Transform.GlobalMatrix , shape2, Part2.Transform.GlobalMatrix, false, 0.1)to get the results of the collision.It contains a gfxID. Compare this via a ForEach Body .. loop with the CollisionsPart.Body [] and you will find the corresponding body. :-)1
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings