Button peut maintenant prendre les inputs du clavier même s'il n'y a pas de manette branchée !

This commit is contained in:
Antoine
2021-06-07 15:03:23 +02:00
parent 33375d4680
commit 9ea45e793a
4 changed files with 25 additions and 21 deletions

View File

@ -31,7 +31,7 @@ public class TrackingTore implements TrackingDummy {
float xPos = this.engine.getViewXPos();
float dimension = this.engine.getCamera().getDimension();
float distance = Math.abs(left.getXPos() - right.getXPos()) + right.getWidth() * right.getScalingFactor();
float middle_point = (left.getXPos() + right.getXPos() + right.getWidth() * right.getScalingFactor()) / 2;
float middle_point = (left.getXPos() + right.getXPos() + right.getWidth() * right.getScalingFactor()) / 2;
if (left.getXPos() < xPos - rayonExt){
// Il faut décaler à gauche + dezoom