if (!isCart && !isTrain) {
return;
}
// Parse offset
Vector offset = Util.parseVector(info.getLine(2), new Vector(0.0, 0.0, 0.0));
if (offset.lengthSquared() == 0.0) {
return;
}
// Rotate the offset so it becomes aligned with the sign
float yaw = FaceUtil.faceToYaw(info.getFacing().getOppositeFace());
offset = MathUtil.rotate(yaw, 0.0f, offset);