Project

General

Profile

« Previous | Next » 

Revision afd7e804

Added by Leszek Koltunski 12 months ago

Everything about the nature of an object being bandaged should now hopefully be abstracted out in the single class - 'BandagedObject'

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java
429 429

  
430 430
   private void rescaleObject()
431 431
     {
432
     float size = mObject.getSize();
432
     float size = mObject.getMaxSize();
433 433
     final float Q = mObjectScreenRatio/size;
434 434
     mScaleValue = mWidth<mHeight ? Q*mWidth : Q*mHeight;
435 435
     mScale.set( mScaleValue,mScaleValue,mScaleValue );

Also available in: Unified diff