How to get integer number with THREE.mapLinear function in Three.js?

前端 未结 0 590
猫巷女王i
猫巷女王i 2021-02-08 19:39

I´m trying to map mouse.x from 0 (a1) to innerWidth (a2), to 0 (b1) to 5 (b2).

so it would be something like:

var valueX = THREE.Math.mapLinear(mouse.x, 0,         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题