coherence in directions

motionstick
Fabien Benetou 2 years ago
parent 68b8ee8136
commit 834ffb4091
  1. 4
      index.html

@ -2382,8 +2382,8 @@ function emptyPinchToMove(){
// start be movable after .05 diam
if (previousPosition){
diff = previousPosition.sub(event.detail.position).clone()
pushBackClass("hidableenvironment", diff.z*10) // consider something exponential instead
pushRightClass("hidableenvironment", diff.x*10)
pushBackClass("hidableenvironment", diff.z*10) // consider something exponential instead while maintaining sign
pushLeftClass("hidableenvironment", diff.x*10)
// could rely on getArrayFromClass(classname) to then move on these 2 dimensions
}
}

Loading…
Cancel
Save