Mantis - tweak
Viewing Issue Advanced Details
86 minor always 08-19-04 21:37 09-23-04 17:53
tedka  
bert  
normal  
resolved  
fixed  
none    
none  
0000086: Positioning an object -- new methods needed
Problem: You are deep in a structure of nested objects on the screen. You want to pop up a new object zz, exactly over some deep object mm. When you say (zz position: pt), what should pt be?
Yes, you can compute (mm globalBounds origin) - (mm world project origin), but there really needs to be a name for this quantity.
The position of the new object will be relative to the CProject. CPlayers don't respond to #project. Shall I define it?
There is a message #globalPosition, but it is not defined in CPrimitiveConstume, and gives an error. (Shall I define it?) #globalPosition is probably intended to give the position relative to World, and that is not what we want.
Any ideas about how to make this much easier?

Notes
(0000171)
bert   
09-23-04 17:53   
Fixed by update 164. Position of any new object is in global coordinates, not offset by project origin.