SEToolbox.Models.StructureCubeGridModel.ReorientStation C# (CSharp) Method

ReorientStation() public method

public ReorientStation ( ) : void
return void
        public void ReorientStation()
        {
            var pos = CubeGrid.PositionAndOrientation.Value;
            pos.Position = pos.Position.RoundOff(MyCubeSize.Large.ToLength());
            pos.Forward = new SerializableVector3(-1, 0, 0); // The Station orientation has to be fixed, otherwise it glitches when you copy the object in game.
            pos.Up = new SerializableVector3(0, 1, 0);
            CubeGrid.PositionAndOrientation = pos;
        }