Asking About Features

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mursaleen

I would like to know if godot has the following two features:
1 : Return Transform position of object from viewport space into world space and vice versa as in Unity : Unity - Scripting API: Camera.ViewportToWorldPoint

2 : Animation Events (Do something when animation reaches a certain frame) : Unity - Scripting API: AnimationEvent

Please inform me if these features are available in godot.
Thanks.

:bust_in_silhouette: Reply From: Magso

Viewport to world point method. get_current_animation_position() for AnimationEvents which can be used in an if statement like this.

if your_animation.get_current_animation_position() > this_many_seconds and !confirm_bool:
    confirm_bool = true
    _new_function()

Thanks Bro.
Been thinking about godot for a while. Might just switch over.

Mursaleen | 2019-08-04 11:19

The only issue you may find with Godot is lower framerate in 3D compared to Unity on lower end hardware, other than that Godot is far more intuitive once you understand it.

Magso | 2019-08-04 19:46