|Anonymous | Login||10-18-2021 05:07 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0000627||[Croquet] Jasmine||minor||always||12-07-04 21:34||12-07-04 21:34|
|Summary||0000627: scale implentation issues.|
I think scale: has been implemented a bit funny.
Using TCube and TFrame as examples,
currently TCube's scale: includes a change to the cube's position.
This seems weird, for example if you have a cube out at 10, 0, 0
and scale it by 2, it moves to 20, 0, 0.
I presume this was done so that if the TCube is a child of a TFrame,
then when the TFrame is scaled, the child TCube will appropriately
move away from the TFrame's origin.
This end can be achieved by reworking the way scale: has been implemented,
without the weirdness of moving an object when you scale it directly.
1. Get rid of 'self translation: scale * self translation.' inside TCube's scale:.
(And all the other primitives which include this sort of line)
2. In TFrame's scale:, move the translation effects from the self to the children,
ie so that it looks like this:
frameChildren do:[ :fc |
fc translation: scale * fc translation.
fc scale: scale.
|There are no notes attached to this issue.|
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.|
24 unique queries executed.