www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: freyzor on March 24, 2006, 11:21:45 AM

Title: setScale problem
Post by: freyzor on March 24, 2006, 11:21:45 AM
Hi,
i´m messing around with the car example and am trying to make the plants grow and shrink individually using setScale acording to a 'health' variable.  The problem is that all the plants sem to react to the first time ot is called and never again.

any suggestions?
Title: setScale problem
Post by: EgonOlsen on March 24, 2006, 11:39:13 AM
Remove the call to enableLazyTransformations(); from Plant and it should work.
Title: setScale problem
Post by: freyzor on March 24, 2006, 12:45:19 PM
ah.. great it worked. i found it in the constructor for PlantManager as well as in the place Plant routine.  

thanks for the quick reply