You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this script in a custom application, so I don't use the renderer, but just the simulation. Then applies the data from the simulation to my visual objects.
... because the the pivot is in the centre on my visual object. Here is an image to give a better overview:
Problem is of course that my pivot point isn't in the centre. Is there a solution for this?
Can I set the pivot of the compound body?
Can I somehow move the body1 and body2 inside the compound body, to make it similar to my visual object?
Let me know if I need to clarify.
Any help is greatly appreciated,
Jakob Wagner
The text was updated successfully, but these errors were encountered:
See my reply to #673 for and explanation and possible solution. If you actually want to move the pivot point (therefore centre of mass) then you should move both body.position and body.positionPrev vectors together (so not moving the vertices). Thinking about it this would probably be useful to add as a function!
Thank you for replying. Moving the pivot is what I want, I already tried moving both position and prevPosition, but didn't get it to work. I will try it again, and come back with more info if I still can't get the result.
Hi
Love the script!
I'm using this script in a custom application, so I don't use the renderer, but just the simulation. Then applies the data from the simulation to my visual objects.
I have a compound body which is made like this:
It is giving me trouble because it seems to centre the pivot point, which means my visual object will be misplaced.
This works fine:
... because the the pivot is in the centre on my visual object. Here is an image to give a better overview:
Problem is of course that my pivot point isn't in the centre. Is there a solution for this?
Can I set the pivot of the compound body?
Can I somehow move the body1 and body2 inside the compound body, to make it similar to my visual object?
Let me know if I need to clarify.
Any help is greatly appreciated,
Jakob Wagner
The text was updated successfully, but these errors were encountered: