Renderer/src/main/java/electrosphere/renderer/ActorUtils.java
austin f4bcc35cbf First pass at attacking
assumptions created:
creatures always have facing vector
animation frames for attack animation
items attached to attacking creatures have hitboxes
2021-07-03 23:25:11 -04:00

28 lines
668 B
Java

package electrosphere.renderer;
import electrosphere.entity.Entity;
import electrosphere.entity.EntityUtils;
import electrosphere.main.Globals;
/**
*
* @author amaterasu
*/
public class ActorUtils {
public static Actor createActorFromModelPath(String modelPath){
Actor rVal = new Actor(modelPath);
Globals.assetManager.addModelPathToQueue(modelPath);
return rVal;
}
public static void applyBlenderTransformer(Entity actorEntity){
Actor entityActor = EntityUtils.getActor(actorEntity);
entityActor.setAnimationScalar(100f);
EntityUtils.getScale(actorEntity).set(0.005f);
}
}