Skip to content

Coordinates extraction #223

@DomenicoRiggio

Description

@DomenicoRiggio

Hello,

I am working with a SOFA scene.scn where a mesh undergoes a rigid translation in 3D space (no deformation), driven by a set of springs.
The scene is loaded in Unity using SofaContext, and the simulation itself runs correctly.

However, I need to retrieve and record the coordinates of this mesh while it is moving, ideally in SOFA coordinates, but Unity coordinates would also be acceptable.

From my observations:
• The Transform values shown in the Unity Inspector are never updated, even though the objects visibly move.
• I cannot find any SofaUnity component or API that exposes the runtime position of an element of the scene.
• This behavior is consistent not only in my own scene, but also in the official SofaUnity demos and tutorials.

Is there a recommended or supported way to access the runtime position (SOFA or Unity coordinates) of an object in a SofaUnity scene.scn?

Thank you in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions