Skip to content

MOTOR joint BUG: NaN body tranlation and rotation when using joint.configureMotorPosition with base body rotation #856

@arkonsolutions

Description

@arkonsolutions

Hello,

I found a strange behavior when calling configureMotorPosition.
It manifests itself precisely when the base body rotates. I rotate the yellow cylinder, and a hammer is attached to it through the revolute joint. I set the joint position via configureMotorPosition(Math.PI, 10000, 100.0). Experimentally, I found out that for revolute joint Math.PI is the highest point. As a result, after the rotation, the world translates the hammer into NaN;NaN;NaN.

VIDEO: https://youtu.be/ap4vPCsgFXE
Jointed body DISAPEARED because NaN translation. This happened not every time when you stop rotation and waitm couple seconds.

DEMO: https://pn5j6z.csb.app/
Try to rotate some degree and stop several times. It is not known exactly which time it will manifest itself. In the video above, I captured this moment.

With respect,
Sergey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions