aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/olacraft/modelAnimator/Leg.java
diff options
context:
space:
mode:
authorolamedia <[email protected]>2012-12-23 11:30:36 +0600
committerolamedia <[email protected]>2012-12-23 11:30:36 +0600
commitf58bdfcb66353bb77213cab580bc49ef890417ad (patch)
tree2983a05d564891e92c115a679f9bfbf55465c755 /src/ru/olamedia/olacraft/modelAnimator/Leg.java
parent5320fd1dad5b77fa227e83fbbe0a958f2c5fc283 (diff)
0.1.7
Diffstat (limited to 'src/ru/olamedia/olacraft/modelAnimator/Leg.java')
-rw-r--r--src/ru/olamedia/olacraft/modelAnimator/Leg.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ru/olamedia/olacraft/modelAnimator/Leg.java b/src/ru/olamedia/olacraft/modelAnimator/Leg.java
new file mode 100644
index 0000000..0f9000d
--- /dev/null
+++ b/src/ru/olamedia/olacraft/modelAnimator/Leg.java
@@ -0,0 +1,27 @@
+package ru.olamedia.olacraft.modelAnimator;
+
+public class Leg extends BoneSet {
+
+ public Bone top;
+ public Bone knee;
+ public Bone foot;
+
+ public Leg() {
+ super(3);
+ top = new Bone();
+ knee = new Bone();
+ foot = new Bone();
+ setChild(0, top);
+ setChild(1, knee);
+ setChild(2, foot);
+ top.setName("Top");
+ knee.setName("Knee");
+ foot.setName("Foot");
+ }
+
+ public void setNamePrefix(String prefix) {
+ top.setName(prefix + top.getName());
+ knee.setName(prefix + knee.getName());
+ foot.setName(prefix + foot.getName());
+ }
+}