Example #1
0
 private static Vector3f getEntityVelocity(EntityRef entity) {
   CharacterMovementComponent charMove = entity.getComponent(CharacterMovementComponent.class);
   if (charMove != null) {
     return charMove.getVelocity();
   }
   return new Vector3f();
 }