Using relative constraint for POV controls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to use a joystick to control objects with simplified first person controls, meaning just yaw rotation and no pitch/roll. I have a relation constraint using displacement from the joystick input to do global controls and that works well.
The only way I've found to locally translate in the direction I'm facing is to parent the object to something else, rotate the parent and then locally translate the child. Of course then the pivot point gets wider the further you translate away.
I can observe that objects with no parent have a global and local translation by seeing the widget stay stationary while in global view and turn while in local view (F5/F6). However, the receiver nodes in relation constraints only affect the local widget regardless of whether the node is set to specify local properties or not.
My original idea was to have two relation constraints, one for rotation and one for translation. Make the rotation one go to a global receiver and the translation one a local receiver. This does not work and the controls continue to just translate the object along the global axes no matter the rotation.