use of org.terasology.math.Rotation in project Terasology by MovingBlocks.
the class BlockShapeImpl method getCollisionShape.
@Override
public CollisionShape getCollisionShape(Rotation rot) {
Rotation simplifiedRot = applySymmetry(rot);
CollisionShape result = collisionShape.get(simplifiedRot);
if (result == null && baseCollisionShape != null) {
result = baseCollisionShape.rotate(simplifiedRot.getQuat4f());
collisionShape.put(simplifiedRot, result);
}
return result;
}
Aggregations