Update goblin model
This commit is contained in:
parent
f9d5f0a51c
commit
8b38a2f6b8
Binary file not shown.
@ -11,10 +11,18 @@ public class LookAtState {
|
||||
Entity parent;
|
||||
|
||||
float pitch;
|
||||
float pitchMax;
|
||||
float pitchMin;
|
||||
float pitchNeutral;
|
||||
String rotatorBoneName;
|
||||
|
||||
|
||||
public LookAtState(Entity parent){
|
||||
public LookAtState(Entity parent, String rotatorBoneName, float pitchMax, float pitchMin, float pitchNeutral){
|
||||
this.parent = parent;
|
||||
this.pitchMax = pitchMax;
|
||||
this.pitchMin = pitchMin;
|
||||
this.pitchNeutral = pitchNeutral;
|
||||
this.rotatorBoneName = rotatorBoneName;
|
||||
}
|
||||
|
||||
public void setPitch(float pitch){
|
||||
@ -25,4 +33,8 @@ public class LookAtState {
|
||||
return pitch;
|
||||
}
|
||||
|
||||
public String getRotatorBoneName() {
|
||||
return rotatorBoneName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ public class CreatureType {
|
||||
CollidableTemplate collidable;
|
||||
List<AttackMove> attackMoves;
|
||||
HealthSystem healthSystem;
|
||||
LookAtSystem lookAtSystem;
|
||||
String modelPath;
|
||||
|
||||
public String getName() {
|
||||
@ -49,6 +50,10 @@ public class CreatureType {
|
||||
public CollidableTemplate getCollidable() {
|
||||
return collidable;
|
||||
}
|
||||
|
||||
public LookAtSystem getLookAtSystem() {
|
||||
return lookAtSystem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
package electrosphere.game.data.creature.type;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author amaterasu
|
||||
*/
|
||||
public class LookAtSystem {
|
||||
|
||||
String rotatorBoneName;
|
||||
float minPitch;
|
||||
float maxPitch;
|
||||
float neutralPitch;
|
||||
|
||||
public String getRotatorBoneName() {
|
||||
return rotatorBoneName;
|
||||
}
|
||||
|
||||
public float getMinPitch() {
|
||||
return minPitch;
|
||||
}
|
||||
|
||||
public float getMaxPitch() {
|
||||
return maxPitch;
|
||||
}
|
||||
|
||||
public float getNeutralPitch() {
|
||||
return neutralPitch;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user