first i like to say happy new year to all and i wish you a safe and productive year.
i have a question about the pin argument of creating a joint.
after playing around with joints it looks like the pin argument is in global space.
how would i go about setting a joint's pin orientation based on some local rotation?
for example 2 cubes binded by a hinge joint with a pin value of Vec3(1,0,0) X axis
looks alright when both cubes are aligned with 0 rotation.
but whenever i bind 2 cubes togheter with some rotation in mind the result is always global axis based?
-------------------------------------
Edit:
currently i have a workaround
which involves aligning both cubes to a global axis then bind them with the joint:hinge
then rotate it all back to there origional state.
the joint then rotates as if local to the parented cube.
but i assume there must be a better way.?
please help.