Exemple #1
0
        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;
        }
Exemple #2
0
 public RelativeLocation(ModMachineEntity machine, Vector3 face)
 {
     this.face              = face;
     machine.RotationEvent += this.OnRotation;
 }