Revision a946af34
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/main/RubikSurfaceView.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
import com.google.firebase.crashlytics.FirebaseCrashlytics; |
32 | 32 |
|
33 |
import org.distorted.library.main.DistortedNode; |
|
34 | 33 |
import org.distorted.objectlib.main.ObjectControl; |
34 |
import org.distorted.objectlib.main.TwistyObjectNode; |
|
35 | 35 |
|
36 | 36 |
import org.distorted.screens.ScreenList; |
37 | 37 |
|
... | ... | |
56 | 56 |
{ |
57 | 57 |
mCreated = true; |
58 | 58 |
mObjectController.createNode(width,height); |
59 |
DistortedNode objectNode = mObjectController.getNode();
|
|
59 |
TwistyObjectNode objectNode = mObjectController.getNode();
|
|
60 | 60 |
mRenderer.getScreen().attach(objectNode); |
61 | 61 |
} |
62 | 62 |
|
src/main/java/org/distorted/tutorials/TutorialSurfaceView.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import com.google.firebase.crashlytics.FirebaseCrashlytics; |
31 | 31 |
|
32 |
import org.distorted.library.main.DistortedNode; |
|
33 | 32 |
import org.distorted.objectlib.main.ObjectControl; |
33 |
import org.distorted.objectlib.main.TwistyObjectNode; |
|
34 | 34 |
|
35 | 35 |
import static org.distorted.objectlib.main.ObjectControl.MODE_ROTATE; |
36 | 36 |
|
... | ... | |
56 | 56 |
{ |
57 | 57 |
mCreated = true; |
58 | 58 |
mObjectController.createNode(width,height); |
59 |
DistortedNode objectNode = mObjectController.getNode(); |
|
59 |
TwistyObjectNode objectNode = mObjectController.getNode(); |
|
60 |
objectNode.setScaleFactor(0.80f); |
|
60 | 61 |
mRenderer.getScreen().attach(objectNode); |
61 | 62 |
} |
62 | 63 |
} |
Also available in: Unified diff
new API to make is possible to adjust default scale factor in each TwistyObjectNode.
(and use it in Tutorials, where the object needs to be smaller)