Hello i am trying to realtime update a value but it is not working , any help please ?
The idea is when the radius of the camera is <= 140 , the sphere will move in the x axis
https://playground.babylonjs.com/#JPH84F
Thanks
Hello i am trying to realtime update a value but it is not working , any help please ?
The idea is when the radius of the camera is <= 140 , the sphere will move in the x axis
https://playground.babylonjs.com/#JPH84F
Thanks
Use sphere0.position.x
instead of sphere0.x
.
Ah sorry i dont see i am using the bad syntaxe , but it is still not working , i have a infinite result , i just need to active it once when i have the right condition
https://playground.babylonjs.com/#JPH84F#3
I tweaked your example a bit and added a couple of console messages.
The matter is that the right condition is active since the beginning. So you just need to define the logic with simple JS.