Revision 99cedf39
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/tutorials/TutorialSurfaceView.java | ||
---|---|---|
50 | 50 |
mScreenWidth = width; |
51 | 51 |
mScreenHeight= height; |
52 | 52 |
mObjectController.setScreenSize(width,height); |
53 |
mObjectController.setMove( (int)(-0.5f*width*TutorialActivity.BAR_RATIO), 0); |
|
53 |
mObjectController.setObjectMove( (int)(-0.5f*width*TutorialActivity.BAR_RATIO), 0); |
|
54 |
mObjectController.setObjectScale(0.80f); |
|
54 | 55 |
|
55 | 56 |
if( !mCreated ) |
56 | 57 |
{ |
57 | 58 |
mCreated = true; |
58 | 59 |
mObjectController.createNode(width,height); |
59 | 60 |
TwistyObjectNode objectNode = mObjectController.getNode(); |
60 |
objectNode.setScaleFactor(0.80f); |
|
61 | 61 |
mRenderer.getScreen().attach(objectNode); |
62 | 62 |
} |
63 | 63 |
} |
Also available in: Unified diff
Fix problems with TwistyObjectNode 'object scale' property.
Now this property is not part of the Node at all, but its initial value passed to the object in its constructor.