I have 2 issues:
one this isn’t clamping
second ‘transition’ between rotate from left to right is delayed I mean not instantly I can steer from left to right,
wheel orientation is ok
if(this.keyboard.isPressed(pc.KEY_LEFT)){
this.steering -= 0.1;
let steer = pc.math.clamp(this.steering, -1, 1).toFixed(2);
this.entity.findByName("Wheel_L").rotateLocal(0,0,steer);
this.entity.findByName("Wheel_R").rotateLocal(0,0,steer);
}
if(this.keyboard.isPressed(pc.KEY_RIGHT)){
this.steering += 0.1;
let steer = pc.math.clamp(this.steering, -1, 1).toFixed(2);
this.entity.findByName("Wheel_L").rotateLocal(0,0,steer);
this.entity.findByName("Wheel_R").rotateLocal(0,0,steer);
}