Search found 2 matches

by zdunker
02 Dec 2019, 20:24
Forum: General questions
Topic: How to do distance measurement between two dynamic objects
Replies: 3
Views: 103

Re: How to do distance measurement between two dynamic objects

After taking a closer look to sim.readDistance , I found out it actually return 2 values, where the second return value is what I'm looking for. I suggest the admin to modify the api document for this method a little, because the 'C return value' is confusing, move smallestDistance into return values.
by zdunker
02 Dec 2019, 18:04
Forum: General questions
Topic: How to do distance measurement between two dynamic objects
Replies: 3
Views: 103

How to do distance measurement between two dynamic objects

Hello, I'm trying to measure distance between two dynamic objects. Attaching a screenshot showcasing what I'm doing. https://i.paste.pics/666493d2ad4ffd48897b5bc600ccaae9.png The robot is moving along the teal line, and cuboid on the bottom is moving along the blue line. I couldn't find an API like ...