Shadnix-was-taken / BeatSaber-SaberTailor

A Beat Saber mod to customize the grip position/angle of the sabers, trail appearance and saber length/width.
MIT License
35 stars 8 forks source link

electrostats mode toggle (rot z before translate) #29

Open incertia opened 2 years ago

incertia commented 2 years ago

2 versions of doing it one is probably easier than the other

a) add electrostats toggle that only affects sabertailor (not really good) b) change mode to enum which requires config migration (and hence why i haven't really done it)

the actual code is pretty simple

                    transform.Rotate(0, 0, Configuration.Grip.RotLeft.z);
                    transform.Translate(Configuration.Grip.PosLeft);
                    transform.Rotate(Configuration.Grip.RotLeft.x, Configuration.Grip.RotLeft.y, 0);
                    transform.Translate(Configuration.Grip.OffsetLeft, Space.World);

so i've had it in my private version but it's probably worth updating sabertailor with it

Shadnix-was-taken commented 2 years ago

Yeah, makes sense. I'll put it on my ToDo list.