08-26-2019, 08:52 AM
Hi,
I've ran into an issue with the group of ModelScalar, ModelMover and ModelRotator in the case of transformation hierarchies and moving in local transformation space.
The issue is, that the axis does not correspond to the axis you drag your mouse in (the transformation matrix of the Model* is not taken into consideration when doing raycast for events). ModelMover and ModelRotator has a workaround: ModelMover can be created anew anytime you want to move object, ModelRotator has 3 static variables that can be set, but ModelScalar has none of it.
Added attachment: So in the case, when Y-axis is rotated into a position of X-axis, you have to drag your mouse vertically on the screen, which does not correspond to the Y-axis being horizontal.
Best regards,
Janovský Roman
I've ran into an issue with the group of ModelScalar, ModelMover and ModelRotator in the case of transformation hierarchies and moving in local transformation space.
The issue is, that the axis does not correspond to the axis you drag your mouse in (the transformation matrix of the Model* is not taken into consideration when doing raycast for events). ModelMover and ModelRotator has a workaround: ModelMover can be created anew anytime you want to move object, ModelRotator has 3 static variables that can be set, but ModelScalar has none of it.
Added attachment: So in the case, when Y-axis is rotated into a position of X-axis, you have to drag your mouse vertically on the screen, which does not correspond to the Y-axis being horizontal.
Best regards,
Janovský Roman

