blob: 0f9000d55783ba94521f3fa04f5f6919f209f9d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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());
}
}
|