mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
fix thruster light positions
This commit is contained in:
parent
273b8f713e
commit
3e049c9f81
@ -47,7 +47,25 @@ namespace QSB.Animation.Player.Thrusters
|
||||
var gameObject = controller.gameObject;
|
||||
var oldThruster = controller.GetValue<Thruster>("_thruster");
|
||||
var oldLight = controller.GetValue<Light>("_light");
|
||||
oldLight.transform.localPosition = Vector3.zero;
|
||||
|
||||
// pain
|
||||
Vector3 localPos;
|
||||
switch (oldThruster)
|
||||
{
|
||||
case Thruster.Up_RightThruster:
|
||||
case Thruster.Up_LeftThruster:
|
||||
localPos = new Vector3(0, 0, 3);
|
||||
break;
|
||||
case Thruster.Down_RightThruster:
|
||||
case Thruster.Down_LeftThruster:
|
||||
localPos = new Vector3(0, 0, 7);
|
||||
break;
|
||||
default:
|
||||
localPos = new Vector3(0, 0, 5);
|
||||
break;
|
||||
}
|
||||
oldLight.transform.localPosition = localPos;
|
||||
|
||||
var oldAnimCurve = controller.GetValue<AnimationCurve>("_scaleByThrust");
|
||||
var oldScaleSpring = controller.GetValue<DampedSpring>("_scaleSpring");
|
||||
var oldScalar = controller.GetValue<float>("_belowMaxThrustScalar");
|
||||
|
Loading…
x
Reference in New Issue
Block a user