Skip to content

Probelm with AnimationPlayer (suspecting gd.Real does not translate well) #47

@mastern2k3

Description

@mastern2k3

Description

I started using godot-go recently and I gotta say - the work you've done here is amazing and I'd love to contribute and make it more stable - that saying, I have a problem I can't figure how to solve.

The bindings work fine but for some reason, the AnimationPlayer element is behaving odd.
Calling .Play() or .GetCurrentAnimationLength() seem to behave as if the gd.Real parameters and return values map to 0.

Things I've tried doing with no success:

  • Editing .Play() on AnimationPlayer and AnimationPlayerImplementer to accept gd.Float instead of gd.Real
  • Making gd.Float underlying type be float32 instead of float64

I've created an example project repo for convenience:
https://github.com/mastern2k3/godot-go-animtest

Would love help on this or maybe a new thread to follow, thanks in advance!

Details

Go version go version go1.11 linux/amd64
Godot version 3.1.stable.official
Godot-Go version/commit hash master branch "1746202"
OS Linux Mint 19.1 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions