Added Several Postures

Added Kneel
Added Prone
Altered CommandService
Altered Stand
Altered ObjManager
This commit is contained in:
tacef
2015-03-01 13:42:35 +01:00
parent 3fdf91f7ee
commit 247ce4e231
5 changed files with 59 additions and 3 deletions
+8 -2
View File
@@ -286,8 +286,14 @@ public class ObjectManager extends Manager {
addToQuadTree(obj);
if (obj instanceof CreatureObject && transform.getSpeed() > 1E-3) {
((CreatureObject) obj).setPosture(Posture.UPRIGHT);
((CreatureObject) obj).sendObservers(new PostureUpdate(obj.getObjectId(), Posture.UPRIGHT));
if(((CreatureObject) obj).getPosture() == Posture.PRONE){
((CreatureObject) obj).setPosture(Posture.PRONE);
((CreatureObject) obj).sendObservers(new PostureUpdate(obj.getObjectId(), Posture.PRONE));
System.out.println("test");
}else{
((CreatureObject) obj).setPosture(Posture.UPRIGHT);
((CreatureObject) obj).sendObservers(new PostureUpdate(obj.getObjectId(), Posture.UPRIGHT));
}
}
obj.sendDataTransforms(transform);
}