Enable shuttle rotation (#4798)

* Enable shuttle rotation

* Tweaks
This commit is contained in:
metalgearsloth
2021-10-09 10:55:10 +11:00
committed by GitHub
parent d5cc7fce8a
commit b888b1fd9c
3 changed files with 17 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ namespace Content.Server.Shuttles
foreach (var fixture in args.NewFixtures)
{
fixture.Mass = fixture.Area * TileMassMultiplier;
fixture.Restitution = 0.1f;
}
if (body.Owner.TryGetComponent(out ShuttleComponent? shuttleComponent))
@@ -123,7 +124,7 @@ namespace Content.Server.Shuttles
component.BodyType = BodyType.Dynamic;
component.BodyStatus = BodyStatus.InAir;
//component.FixedRotation = false; TODO WHEN ROTATING SHUTTLES FIXED.
component.FixedRotation = true;
component.FixedRotation = false;
component.LinearDamping = 0.2f;
component.AngularDamping = 0.1f;
}