use meters in config
This commit is contained in:
@@ -4,18 +4,18 @@
|
||||
|
||||
struct DynamicBodyComponent
|
||||
{
|
||||
// --- dynamics parameters (formerly ShipDynamics) ---
|
||||
float maxSpeedPerTick;
|
||||
float mainAccelerationPerTick;
|
||||
float maneuveringAccelerationPerTick;
|
||||
float angularAccelerationPerTick;
|
||||
float maxRotationSpeedPerTick;
|
||||
// --- dynamics parameters ---
|
||||
float maxSpeed_tpt; // tiles/tick
|
||||
float mainAcceleration_tptt; // tiles/tick²
|
||||
float maneuveringAcceleration_tptt; // tiles/tick²
|
||||
float maxAngularAcceleration_rptt; // rad/tick²
|
||||
float maxRotationSpeed_rpt; // rad/tick
|
||||
|
||||
// --- integrated state ---
|
||||
QVector2D velocity;
|
||||
float angularVelocity;
|
||||
QVector2D velocity_tpt; // tiles/tick
|
||||
float angularVelocity_rpt; // rad/tick
|
||||
|
||||
// --- written each tick by MovementIntentSystem, consumed by DynamicBodySystem ---
|
||||
QVector2D linearAcceleration;
|
||||
float angularAcceleration;
|
||||
QVector2D linearAcceleration_tptt; // tiles/tick²
|
||||
float angularAcceleration_rptt; // rad/tick²
|
||||
};
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
struct RepairBehaviorComponent
|
||||
{
|
||||
std::optional<entt::entity> currentTarget;
|
||||
float maxRepairRange = 0.0f;
|
||||
float maxRepairRange_tiles = 0.0f;
|
||||
};
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
struct RepairToolComponent
|
||||
{
|
||||
float ratePerTick;
|
||||
float range;
|
||||
float range_tiles;
|
||||
std::optional<entt::entity> currentTarget;
|
||||
};
|
||||
|
||||
@@ -10,5 +10,5 @@ struct SalvageBehaviorComponent
|
||||
{
|
||||
std::optional<QVector2D> scrapTarget;
|
||||
BuildingId deliveryBay; // kInvalidBuildingId until assigned at a salvage bay
|
||||
float maxCollectionRange = 0.0f;
|
||||
float maxCollectionRange_tiles = 0.0f;
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@ struct SalvageCargoComponent
|
||||
{
|
||||
int capacity;
|
||||
int current;
|
||||
float collectionRange;
|
||||
float collectionRange_tiles;
|
||||
int collectionIntervalTicks;
|
||||
int cooldownTicksRemaining;
|
||||
};
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
struct SensorRangeComponent
|
||||
{
|
||||
float value;
|
||||
float value_tiles;
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
struct WeaponComponent
|
||||
{
|
||||
float damage;
|
||||
float range;
|
||||
float range_tiles;
|
||||
float fireRateHz;
|
||||
float cooldownTicks;
|
||||
std::optional<entt::entity> currentTarget;
|
||||
|
||||
Reference in New Issue
Block a user