public void PinTo(Entity toEntity, Vec3f pinOffset) { pinned = true; pinnedTo = toEntity; pinnedToEntityId = toEntity.EntityId; pinnedToOffset = pinOffset; pinnedToOffsetStartYaw = toEntity.SidedPos.Yaw; pinOffsetTransform = Matrixf.Create(); pinnedToBlockPos = null; MarkDirty(); }