How to make an actor thicker without changing its position,


I’m trying to make an mesh actor (a line) thicker in my scene, but every time I use the setScale(2 * currentScale[0], currentScale[1], currentScale[2]) it changes its position in the scene,

Is there a way to make my actor or my polydata thicker?

Have you tried the following:

const origin = actor.getOrigin();

Yes, I tried setOrigin, and setPosition as well but It changes the position (I have two actors in my scene)

Here is a codeSandbox to show you the problem,

You actually have to compensate for the scaling in your origin. It’s a “matrix” math thingy…

I’ve managed to make the line actor thicker using: