Desmos expression to babylon curve code

Hi!

I’m having a little coding difficulty porting a desmos expression to a babylon curve. Perhaps somehere here can help.

Here’s my WIP
https://www.babylonjs-playground.com/#RF2WMK#3

Here’s the desmos chart
https://www.desmos.com/calculator/2tfls5rf9j

Changing tau in babylon causes curve breaks close to the x axis. However, those break do not show on desmos.

Any advice would be welcomed.

I had read somewhere that Math.pow and ** are not the same at runtime. Perhaps that’s it.

you most use Radian i guess in Tan

https://www.babylonjs-playground.com/#RF2WMK#4

1 Like

Good catch! Thanks! :slight_smile: