2019-05-29 23:22:23

Sorry for the double posting, you could try creating apps that use the same formula or the equivalent  in python and BGT and see if you get the same output.  If not, then I will go over the formula again and compare the parentheses, as that  is what could cause the issue

Coding is not hard. No, not at all.
What is hard is making code that accepts different and sometimes unexpected types of input and still works.
This is what truly takes a large amount of effort on a developer's part.

Thumbs up

2019-05-31 17:16:36

Hello! I Figured how to fix this. Aparrantly i forgot this since I wasn't doing the following for a while.
Actually you have to pass a theta to update_listener_3d and 2d not degrees.
I hope if anyone have this problem, read this and don't be confused like me, for days. I was actually losing hope

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-05-31 17:29:13

Can you do me a favor and explain to me the difference between the two? I understand the concept of degrees, what I do not understand is what is theta.

Coding is not hard. No, not at all.
What is hard is making code that accepts different and sometimes unexpected types of input and still works.
This is what truly takes a large amount of effort on a developer's part.

Thumbs up

2019-05-31 19:38:01

radians. (degrees*pi)/180.0

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-05-31 21:30:55

I don’t mean the calculation, although that is certainly useful. I mean, what does it do. Does it exist in real world?  Degrees can tell you which way something is facing, but what does theta tell you?

Coding is not hard. No, not at all.
What is hard is making code that accepts different and sometimes unexpected types of input and still works.
This is what truly takes a large amount of effort on a developer's part.

Thumbs up

2019-06-01 08:52:00

Sorry, alittle bit of topic, but i can't play mp3 files with this awesome sound_pool...

best regards
never give up on what ever you are doing.

2019-06-01 17:11:20 (edited by kianoosh 2019-06-01 17:14:53)

Yeah it really does exist. We might have named it wrong as "theta". It is called calculating the radians. There's the formula for it in python's standard math library. math.radians(degrees)
Radians of the degrees is needed to be able to move on object based on a direction. Since sound pool actually moves the source around you based on your direction, You need to pass the radians of your direction instead of your direction which is in degree.
It is completely normal. No worries.

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-06-01 20:23:42

Right, but what is theta conceptually, not mathematically? As in, degrees tell you what way you're facing, what does theta tell you, though? How is it related to sound and it's positioning?

Coding is not hard. No, not at all.
What is hard is making code that accepts different and sometimes unexpected types of input and still works.
This is what truly takes a large amount of effort on a developer's part.

Thumbs up

2019-06-02 15:20:56

the lower cased θ is used for a plane angle in geometry.
Theta is needed to position the sound because the formula that it uses should have radians instead of degrees. So I say, a wrong naming of a function leads you to this confusion. The function calculate_theta which can be found in sam's rotation package should be named calculate_radians.

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-06-03 21:10:29

hi @amerikranian
WHat license are your code licensed under (if any) ?
Really want to include it in a bigger, open source project, but idk what the license is for your code.

I'm me. Just me. No one else. Only meeee!

Thumbs up

2019-06-04 06:21:15

It is not licensed. Really, do whatever you want with it.

Coding is not hard. No, not at all.
What is hard is making code that accepts different and sometimes unexpected types of input and still works.
This is what truly takes a large amount of effort on a developer's part.

Thumbs up