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
Parent (ObjectManipulator, can rotate and move freely)
Child (ObjectManipulator, can move in its local z axis)
The child should only move along the z axis. I get this behavior using MoveAxisConstraint
However, I have a situation where a user can manipulate the child with one hand and the parent with the other. If I rotate the parent with its objectManipulator while I grab the child with the child objectManipulator, this constraint get broken, and the child is not longer in the z axis
I have thought of a way to solve this, disabling the child manipulation when the parent is getting manipulated, so I have thought in 3 different approaches
Enable/Disable the child ObjectManipulator at OnManipulationStarted/Ended parent events
Create a custom constraint (somehow)
Create a IXRSelectFilter and add it at the child in its Starting Selected Filters
The one I like the most is the third one and I have created this filter
My question is:
Is this approach correct? Can I have some some side effect that I am not taking into consideration?
Might it be too overkill? Is there any built-in solution to situations like that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I have this hierarchy
The child should only move along the z axis. I get this behavior using MoveAxisConstraint
However, I have a situation where a user can manipulate the child with one hand and the parent with the other. If I rotate the parent with its objectManipulator while I grab the child with the child objectManipulator, this constraint get broken, and the child is not longer in the z axis
I have thought of a way to solve this, disabling the child manipulation when the parent is getting manipulated, so I have thought in 3 different approaches
The one I like the most is the third one and I have created this filter
My question is:
Is this approach correct? Can I have some some side effect that I am not taking into consideration?
Might it be too overkill? Is there any built-in solution to situations like that?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions