Mantis - Croquet
Viewing Issue Advanced Details
882 Jasmine minor always 02-14-05 21:08 02-14-05 21:36
elenzil  
 
normal  
new  
open  
none    
none  
0000882: TEditBox does not work with TTorus or TSphere
investigating..

------------------------------------------------

TeaTest new openInWorld.
TParticle allInstances last removeSelf.
space _ TSpace allInstances last.

d _ TTorus new.
space addChild: d.
d translationX: -10 y: 0 z: 0.
teb1 _ TEditBox new initializeWithContents: d.

c _ TCube new.
space addChild: c.
c translationX: 0 y: 0 z: 0.
teb2 _ TEditBox new initializeWithContents: c.

s _ TSphere new.
space addChild: s.
s translationX: 10 y: 0 z: 0.
teb3 _ TEditBox new initializeWithContents: s.



Notes
(0001148)
elenzil   
02-14-05 21:11   
it's probably because
#frameBox for TSPhere and TTorus is returning 0,0,0 instead of something correct.
still investigating.
(0001149)
elenzil   
02-14-05 21:36   
Changeset with fix.

Added a #frameBox to TPrimitive which just answers the box containging the boundingSphere. Primitives such as TCube can do better.
For that matter so can TTorus.

Note-
primitives still need to implement #scale themselves for the TEditBox's scale feature to work. I will be adding this to TTorus soon.