Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/esm/xr-navigation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ class XrNavigation extends Script {
// Apply movement to camera parent (this entity)
this.entity.translate(this.tmpVec2A.x, 0, this.tmpVec2A.y);
}
} else if (inputSource.handedness === 'right') { // Right controller - snap turning
} else if (inputSource.handedness === 'right') { // Right controller - snap turning and elevation
//control elevation via right controller y-axis
this.entity.translate(0, Math.sign( inputSource.gamepad.axes[3] ) * this.movementSpeed * dt, 0);

this.handleSnapTurning(inputSource);
}
}
Expand Down