Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Fengist/Kerballoons---Reinflated
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Growflavor/Kerballoons---Reinflated
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 29, 2019

  1. Copy the full SHA
    e0492f8 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 ModuleKerBalloon.cs
6 changes: 3 additions & 3 deletions ModuleKerBalloon.cs
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ public void FixedUpdate()
if (isInflated)
{
float lift = BalloonProperties.getLift(this);
this.part.Rigidbody.AddForceAtPosition(vessel.upAxis * lift,liftPointObject.transform.position);
this.part.AddForceAtPosition(vessel.upAxis * lift,liftPointObject.transform.position);
Vector3 scale = new Vector3(BalloonProperties.getScale(this), BalloonProperties.getScale(this), BalloonProperties.getScale(this));
balloonObject.transform.localScale = scale;

@@ -146,7 +146,7 @@ public void FixedUpdate()
float progress = scaleInc / BalloonProperties.getScale(this);

float lift = BalloonProperties.getLift(this) * progress;
this.part.Rigidbody.AddForceAtPosition(vessel.upAxis * lift, liftPointObject.transform.position);
this.part.AddForceAtPosition(vessel.upAxis * lift, liftPointObject.transform.position);

ropeObject.transform.localScale = new Vector3(1, 1, progress);
balloonObject.transform.position = balloonPointObject.transform.position;
@@ -175,7 +175,7 @@ public void FixedUpdate()
float progress = scaleInc / BalloonProperties.getScale(this);

float lift = BalloonProperties.getLift(this) * progress;
this.part.Rigidbody.AddForceAtPosition(vessel.upAxis * lift, liftPointObject.transform.position);
this.part.AddForceAtPosition(vessel.upAxis * lift, liftPointObject.transform.position);


ropeObject.transform.rotation = Quaternion.Slerp(ropeObject.transform.rotation, Quaternion.LookRotation(vessel.upAxis, vessel.upAxis), BalloonProperties.getLift(this) / 10);