remove blender transform token support
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
4ff8f1a5d0
commit
ff3914cc19
@ -8,7 +8,6 @@
|
||||
"creatureId" : "CUBE_MAN",
|
||||
"hitboxes" : [],
|
||||
"tokens" : [
|
||||
"BLENDER_TRANSFORM",
|
||||
"SENTIENT",
|
||||
"GRAVITY"
|
||||
],
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
}
|
||||
],
|
||||
"tokens" : [
|
||||
"BLENDER_TRANSFORM",
|
||||
"GRAVITY"
|
||||
],
|
||||
"movementSystems" : [
|
||||
|
||||
@ -50,7 +50,6 @@
|
||||
}
|
||||
],
|
||||
"tokens" : [
|
||||
"BLENDER_TRANSFORM",
|
||||
"SENTIENT",
|
||||
"ATTACKER",
|
||||
"GRAVITY",
|
||||
|
||||
@ -50,7 +50,6 @@
|
||||
}
|
||||
],
|
||||
"tokens" : [
|
||||
"BLENDER_TRANSFORM",
|
||||
"SENTIENT",
|
||||
"ATTACKER",
|
||||
"GRAVITY",
|
||||
|
||||
@ -50,7 +50,6 @@
|
||||
}
|
||||
],
|
||||
"tokens" : [
|
||||
"BLENDER_TRANSFORM",
|
||||
"SENTIENT",
|
||||
"ATTACKER",
|
||||
"GRAVITY",
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
},
|
||||
"tokens" : [
|
||||
"GRAVITY",
|
||||
"BLENDER_TRANSFORM",
|
||||
"MELEE",
|
||||
"TARGETABLE",
|
||||
"OUTLINE"
|
||||
@ -82,7 +81,6 @@
|
||||
},
|
||||
"tokens" : [
|
||||
"GRAVITY",
|
||||
"BLENDER_TRANSFORM",
|
||||
"MELEE",
|
||||
"TARGETABLE",
|
||||
"OUTLINE"
|
||||
|
||||
@ -205,9 +205,6 @@ public class CreatureUtils {
|
||||
}
|
||||
for(String token : rawType.getTokens()){
|
||||
switch(token){
|
||||
case "BLENDER_TRANSFORM":
|
||||
ActorUtils.applyBlenderTransformer(rVal);
|
||||
break;
|
||||
case "ATTACKER":
|
||||
ClientAttackTree.attachTree(rVal);
|
||||
rVal.putData(EntityDataStrings.ATTACK_MOVE_TYPE_ACTIVE, null);
|
||||
@ -476,9 +473,6 @@ public class CreatureUtils {
|
||||
}
|
||||
for(String token : rawType.getTokens()){
|
||||
switch(token){
|
||||
case "BLENDER_TRANSFORM": {
|
||||
PoseActorUtils.applyBlenderTransformer(rVal);
|
||||
} break;
|
||||
case "ATTACKER": {
|
||||
ServerAttackTree.attachTree(rVal);
|
||||
rVal.putData(EntityDataStrings.ATTACK_MOVE_TYPE_ACTIVE, null);
|
||||
|
||||
@ -45,9 +45,6 @@ public class FoliageUtils {
|
||||
|
||||
for(String token : rawType.getTokens()){
|
||||
switch(token){
|
||||
case "BLENDER_TRANSFORM":
|
||||
ActorUtils.applyBlenderTransformer(rVal);
|
||||
break;
|
||||
case "BLENDER_ROTATION":
|
||||
ActorUtils.applyBlenderRotation(rVal);
|
||||
break;
|
||||
@ -79,9 +76,6 @@ public class FoliageUtils {
|
||||
|
||||
for(String token : rawType.getTokens()){
|
||||
switch(token){
|
||||
case "BLENDER_TRANSFORM":
|
||||
ActorUtils.applyBlenderTransformer(rVal);
|
||||
break;
|
||||
case "BLENDER_ROTATION":
|
||||
ActorUtils.applyBlenderRotation(rVal);
|
||||
break;
|
||||
|
||||
@ -64,9 +64,6 @@ public class ItemUtils {
|
||||
//tokens
|
||||
for(String token : item.getTokens()){
|
||||
switch(token){
|
||||
case "BLENDER_TRANSFORM":
|
||||
ActorUtils.applyBlenderTransformer(rVal);
|
||||
break;
|
||||
case "GRAVITY":
|
||||
Collidable collidable = (Collidable)rVal.getData(EntityDataStrings.PHYSICS_COLLIDABLE);
|
||||
DBody collisionObject = (DBody)rVal.getData(EntityDataStrings.PHYSICS_COLLISION_BODY);
|
||||
@ -146,9 +143,6 @@ public class ItemUtils {
|
||||
//tokens
|
||||
for(String token : item.getTokens()){
|
||||
switch(token){
|
||||
case "BLENDER_TRANSFORM":
|
||||
ActorUtils.applyBlenderTransformer(rVal);
|
||||
break;
|
||||
case "GRAVITY":
|
||||
Collidable collidable = (Collidable)rVal.getData(EntityDataStrings.PHYSICS_COLLIDABLE);
|
||||
DBody collisionObject = (DBody)rVal.getData(EntityDataStrings.PHYSICS_COLLISION_BODY);
|
||||
|
||||
@ -17,13 +17,4 @@ public class PoseActorUtils {
|
||||
return rVal;
|
||||
}
|
||||
|
||||
public static void applyBlenderTransformer(Entity actorEntity){
|
||||
PoseActor entityActor = EntityUtils.getPoseActor(actorEntity);
|
||||
entityActor.setAnimationScalar(60f); //should be the value of the fps i think
|
||||
}
|
||||
|
||||
public static void applyBlenderRotation(Entity actorEntity){
|
||||
EntityUtils.getRotation(actorEntity).rotateLocalX((float)-Math.PI/2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user