Godot: Not work rotated transform (Godot 3.0)

Created on 6 Oct 2017  路  3Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Ubuntu 16.04, Godot 3.0 Alpha 1

Issue description:
Not work rotated transform

    var transf = get_node('MeshInstance').get_global_transform()
    transf.rotated(Vector3(0, 1, 0), 45.0)
    get_node('MeshInstance').set_global_transform(transf)

Link to minimal example project:
Bug transform rotated.zip

archived bug core

Most helpful comment

Rotated returns the rotated transform, it doesn't modify itself. Docs could be improved I guess

All 3 comments

Rotated returns the rotated transform, it doesn't modify itself. Docs could be improved I guess

you should do:
transf = transf.rotated(Vector3(0, 1, 0), 45.0)

Closing as this is more due to a misinterpretation of the API than an engine bug.

Ok. Thanks

Was this page helpful?
0 / 5 - 0 ratings