![]() |
|
Combination of ModelMover and ModelRotate and ModelResizer - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9) +--- Thread: Combination of ModelMover and ModelRotate and ModelResizer (/showthread.php?tid=4042) |
Combination of ModelMover and ModelRotate and ModelResizer - papakaliati - 09-30-2017 I couldn't find a simple way to combine those two controls. When using the rotator, it moves the decorator to an incorrect position. Also is there the possibility for like a ModelResizer, for easier resizing? RE: Combination of ModelMover and ModelRotate and ModelResizer - abenedik - 10-02-2017 I would guess that the problem is in the order of transformations. You need to be sure that you first rotate your model and then translate it. If you rotate a translated model, the model will be also moved with the rotation because it was already moved away from the center of rotation. If you are using Transform3DGroup to add transformations, you can use the following method to add transformations: Code: // Add rotateTransform3D in front of any other transformationsThis method is an updated version of the method that is define in the Ab3d.PowerToys.Samples.Utilities.ModelRotatorSample class (in PowerToys v8.0). I did not yet have time to implement ModelResizer. I am planning to implement it for the next version. |