alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
288 stars 14 forks source link

Invalid type in function 'distance_to' in base 'Vector2'. #27

Closed MrdoodSFX closed 3 years ago

MrdoodSFX commented 3 years ago

After i followed the instructions on all the youtube vidéos you've made i got this error in the console :

res://addons/waapi_picker/waapi_picker.gd:405 - Invalid type in function 'distance_to' in base 'Vector2'. Cannot convert argument 1 from Vector3 to Vector2.

And when I try to create any "ak" the windows looks like this

Capture2

Im on windows btw,

Thx !

alessandrofama commented 3 years ago

Hi @MrdoodSFX, thanks for sharing this problem. I've never experienced this, so do you have a project you can share with me that has this issue, so I can take a closer look? Which Godot version are you using by the way?

MrdoodSFX commented 3 years ago

Thanks for you're answer, first i wanna precise that I'm not a dev but a sound designer. I m working on godot 3.2.3, and wwise 2019.2.1.7250. How can i share you the project ?

alessandrofama commented 3 years ago

That's not a problem. You can compress (zip) the project (do you know how?) and upload it on WeTransfer for example. Send the resulting link privately via e-mail (me@alessandrofama.com) or post it here :)

MrdoodSFX commented 3 years ago

Ok it's send !

alessandrofama commented 3 years ago

The problem here was that the Root node was a Control node and not a Spatial node. The Waapi Picker needs a Spatial node to be able to place Wwise Objects as Events in the Viewport. Fixed by https://github.com/alessandrofama/wwise-godot-integration/commit/bbe4b6eeb4e7a64c265f993f12a793daf5fd9ff2 .