Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
197 stars 9 forks source link

Copy Rotation Constraint-like Component #2651

Open Deretto opened 3 years ago

Deretto commented 3 years ago

Is your feature request related to a problem? Please describe.

I mostly want this feature for rigging set up in Neos. The current copy transform options I've seen aren't helpful enough for the type of animation rigging I want to do. Notably being able to choose which axis and transform we would like to copy as well as an influence value to multiply the value as needed.

Relevant issues

No response

Describe the solution you'd like

Ideally I'd like a simple component that can do this without redundant logix or chain of other components. image image

Describe alternatives you've considered

Add checkboxes to copy transform that lets us choose which transforms and axis to copy in local/world space. As well as an influence value as a multiplier (allowing negative for mirrored copy.)

Additional context

No response

shadowpanther commented 3 years ago

Rotations are internally floatQ (quaternions). The Euler representation is only for the interface. To filter the rotation to one/two axes, you'd have to convert to Euler, take the axes you need, and convert back to floatQ. Both operations are lossy because of the nature of the calculations (floating point precision, gimbal lock). So you might end up with an unintended rotations in some cases.