We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56e8d0 commit 7636c34Copy full SHA for 7636c34
src/ts/characters/Character.ts
@@ -677,13 +677,13 @@ export class Character extends THREE.Object3D implements IWorldEntity
677
{
678
this.resetControls();
679
680
- if (seat.door?.rotation > 0.5)
+ if (seat.door?.rotation < 0.5)
681
682
- this.setState(new EnteringVehicle(this, seat));
+ this.setState(new OpenVehicleDoor(this, seat, entryPoint));
683
}
684
else
685
686
- this.setState(new OpenVehicleDoor(this, seat, entryPoint));
+ this.setState(new EnteringVehicle(this, seat));
687
688
689
0 commit comments