feat(entities): derivar collision_radius del shape + scale/collision_factor al YAML
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
struct PlayerConfig {
|
||||
struct ShapeCfg {
|
||||
std::string path;
|
||||
float scale; // multiplicador visual + hitbox sobre la mida nativa del .shp
|
||||
float collision_factor; // ajust opcional del hitbox respecte el cercle circumscrit (default 1.0)
|
||||
};
|
||||
|
||||
struct PhysicsCfg {
|
||||
@@ -24,7 +26,6 @@ struct PlayerConfig {
|
||||
float restitution;
|
||||
float linear_damping;
|
||||
float angular_damping;
|
||||
float collision_radius;
|
||||
float rotation_speed; // rad/s
|
||||
float acceleration; // px/s^2 multiplicat per la massa
|
||||
float max_velocity; // px/s (clamp post-integració)
|
||||
|
||||
Reference in New Issue
Block a user