public void OnRotation(ModMachineEntity sender, Quaternion rotation) { Vector3 v = (rotation * face); worldDirection.x = (long)v.x + sender.mnX; worldDirection.y = (long)v.y + sender.mnY; worldDirection.z = (long)v.z + sender.mnZ; }
public RelativeLocation(ModMachineEntity machine, Vector3 face) { this.face = face; machine.RotationEvent += this.OnRotation; }