if ( upDownMovement == true) {
SELECTED.position.y = mouse.y * scale;
}
In my attempt to create a vertical movement control that only allows for direct up and down motion along the Y-axis, I discovered a critical flaw in my implementation. The issue lies in the discontinuity between the initial mouse position and the model's original position, resulting in a noticeable "jump" at the beginning of the movement.
I am now seeking guidance on the correct approach to implementing this type of control. If there are any libraries or resources available that excel in this area, I would greatly appreciate any recommendations.
One potential solution I'm considering is modifying the code to read as follows: SELECTED.position.y = SELECTED.position.y + mouse.y * scale; however, I am open to suggestions and feedback from experienced developers.