feat(JOML): migrate NameTagClientSystem
*/
package org.terasology.logic.nameTags;
+import org.joml.Quaternionf;
+import org.joml.Vector3f;
import org.terasology.entitySystem.entity.EntityBuilder;
import org.terasology.entitySystem.entity.EntityManager;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.logic.location.Location;
import org.terasology.logic.location.LocationComponent;
-import org.terasology.math.geom.Quat4f;
-import org.terasology.math.geom.Vector3f;
import org.terasology.registry.In;
import org.terasology.rendering.logic.FloatingTextComponent;
@@ -85,7 +85,7 @@ private void createOrUpdateNameTagFor(EntityRef entity, NameTagComponent nameTag
nameTag = nameTagBuilder.build();
nameTagEntityToFloatingTextMap.put(entity, nameTag);
- Location.attachChild(entity, nameTag, offset, new Quat4f(1, 0, 0, 0));
+ Location.attachChild(entity, nameTag, offset, new Quaternionf());
}
}
