assumptions created: creatures always have facing vector animation frames for attack animation items attached to attacking creatures have hitboxes
28 lines
668 B
Java
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);
|
|
}
|
|
|
|
|
|
}
|