mirror of https://github.com/godotengine/godot
Fix angular velocity default value in TileSet
Value was uninitialized, which lead to undefined behavior.
This commit is contained in:
parent
77721b35ba
commit
d46ac42389
|
|
@ -646,7 +646,7 @@ private:
|
|||
};
|
||||
|
||||
Vector2 linear_velocity;
|
||||
float angular_velocity;
|
||||
float angular_velocity = 0.0;
|
||||
Vector<PolygonShapeTileData> polygons;
|
||||
};
|
||||
Vector<PhysicsLayerTileData> physics;
|
||||
|
|
|
|||
Loading…
Reference in New Issue