AutoMovie API
    Preparing search index...

    Function physicalShapeSegmentDistance

    • The signed distance, metres, from a world segment to an admitted sphere, Y capsule, oriented box or convex hull placed by a parent pose: the least distance over the segment's points to the shape's surface, negative when the segment enters it. A segment whose two ends coincide is a point, so this is also the point-to-shape distance. A segment widened by a radius running linearly from a to b (a tapered capsule) reads its own signed distance: the least over its points of the distance less the radius there.

      It uses the same physicalShapeQuery numerical owner as physicalShapeNearest, retaining the actual distance while omitting unobserved final contact fields.

      Parameters

      Returns number

      The signed distance, metres; negative inside.