paddle problem
This commit is contained in:
@@ -60,9 +60,9 @@ namespace Content.Server.Shuttles.Components
|
||||
/// Damping applied to the shuttle's physics component when not in FTL.
|
||||
/// </summary>
|
||||
[DataField("linearDamping"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float LinearDamping = 0.05f;
|
||||
public float LinearDamping = 0.5f;//0.05f; //CP14 - the ocean is much denser than space, you know.
|
||||
|
||||
[DataField("angularDamping"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float AngularDamping = 0.05f;
|
||||
public float AngularDamping = 0.5f; //0.05f; //CP14 - the ocean is much denser than space, you know.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,5 +7,8 @@ namespace Content.Shared._CP14.Shuttle;
|
||||
public sealed partial class CP14WaterShipPaddleComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public float Power = 10f;
|
||||
public float Power = 5f;
|
||||
|
||||
[DataField]
|
||||
public Angle ImpulseAngle = Angle.FromDegrees(90f);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,8 @@ public sealed class CP14WatershipSystem : EntitySystem
|
||||
if (paddleTransform.GridUid is null)
|
||||
return;
|
||||
|
||||
var impulseDirection = paddleTransform.LocalRotation.ToVec();
|
||||
var direction = _transform.GetWorldRotation(paddleTransform) + ent.Comp.ImpulseAngle;
|
||||
var impulseDirection = direction.ToVec();
|
||||
|
||||
_physics.ApplyLinearImpulse(paddleTransform.GridUid.Value, impulseDirection * ent.Comp.Power * modifier, paddleTransform.LocalPosition);
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
- type: Anchorable
|
||||
- type: Pullable
|
||||
- type: CP14WaterShipPaddle
|
||||
impulseAngle: 90
|
||||
|
||||
- type: entity
|
||||
parent: CP14BaseWatershipPaddle
|
||||
@@ -49,6 +50,7 @@
|
||||
components:
|
||||
- type: Sprite
|
||||
state: wooden_l
|
||||
- type: CP14WaterShipPaddle
|
||||
|
||||
- type: entity
|
||||
parent: CP14BaseWatershipPaddle
|
||||
@@ -56,4 +58,5 @@
|
||||
suffix: Right
|
||||
components:
|
||||
- type: Sprite
|
||||
state: wooden_r
|
||||
state: wooden_r
|
||||
- type: CP14WaterShipPaddle
|
||||
Reference in New Issue
Block a user