mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add acceleration to rafts
This commit is contained in:
parent
fd2f839d90
commit
25a56c65fc
@ -38,6 +38,7 @@ namespace NewHorizons.Builder.Props
|
||||
raftController._riverFluid = null;
|
||||
|
||||
raftController._sector = sector;
|
||||
raftController._acceleration = info?.acceleration ?? 5f;
|
||||
sector.OnOccupantEnterSector += raftController.OnOccupantEnterSector;
|
||||
sector.OnOccupantExitSector += raftController.OnOccupantExitSector;
|
||||
|
||||
|
||||
5
NewHorizons/External/Modules/PropModule.cs
vendored
5
NewHorizons/External/Modules/PropModule.cs
vendored
@ -233,6 +233,11 @@ namespace NewHorizons.External.Modules
|
||||
/// Position of the raft
|
||||
/// </summary>
|
||||
public MVector3 position;
|
||||
|
||||
/// <summary>
|
||||
/// Acceleration of the raft
|
||||
/// </summary>
|
||||
[DefaultValue(5f)] public float acceleration = 5f;
|
||||
}
|
||||
|
||||
[JsonObject]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user