hydra vertical offset

This commit is contained in:
SamGondelman 2015-07-20 13:42:35 -07:00
parent d88e484b00
commit 69bfd7dcc1

View file

@ -419,8 +419,8 @@ void SixenseManager::handlePoseEvent(glm::vec3 position, glm::quat rotation, int
#ifdef HAVE_SIXENSE
// Transform the measured position into body frame.
glm::vec3 neck = _neckBase;
// Zeroing y component of the "neck" effectively raises the measured position a little bit.
neck.y = 0.0f;
// Set y component of the "neck" to raise the measured position a little bit.
neck.y = 0.5f;
position = _orbRotation * (position - neck);
// adjustment for hydra controllers fit into hands