mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Expose get_skew for transform2d and add new constructor
Expose set_scale and set_skew for transform2d Replacing float by real_t Adding const parameters Updated transform2d doc
This commit is contained in:
parent
18c0f0b3ba
commit
aa82cb6f35
5 changed files with 74 additions and 29 deletions
|
@ -114,6 +114,7 @@ void Variant::_register_variant_constructors() {
|
|||
add_constructor<VariantConstructNoArgs<Transform2D>>(sarray());
|
||||
add_constructor<VariantConstructor<Transform2D, Transform2D>>(sarray("from"));
|
||||
add_constructor<VariantConstructor<Transform2D, float, Vector2>>(sarray("rotation", "position"));
|
||||
add_constructor<VariantConstructor<Transform2D, float, Size2, float, Vector2>>(sarray("rotation", "scale", "skew", "position"));
|
||||
add_constructor<VariantConstructor<Transform2D, Vector2, Vector2, Vector2>>(sarray("x_axis", "y_axis", "origin"));
|
||||
|
||||
add_constructor<VariantConstructNoArgs<Plane>>(sarray());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue