Mantis Bugtracker
  

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
Reporter elenzil View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0000627: scale implentation issues.
Description 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.

Proposed:

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:
-------------------
scale: scale
    frameChildren ifNotNil:[
        frameChildren do:[ :fc |
            fc translation: scale * fc translation.
            fc scale: scale.
            ].
        ].
-------------------

Orion


Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-07-04 21:34 elenzil New Issue


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker