Update goblin model

This commit is contained in:
austin 2021-11-19 18:32:55 -05:00
parent f9d5f0a51c
commit 8b38a2f6b8
4 changed files with 50 additions and 1 deletions

Binary file not shown.

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -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;
}
}