Skip to content

Commit 7636c34

Browse files
committed
door opening fix
1 parent d56e8d0 commit 7636c34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ts/characters/Character.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,13 @@ export class Character extends THREE.Object3D implements IWorldEntity
677677
{
678678
this.resetControls();
679679

680-
if (seat.door?.rotation > 0.5)
680+
if (seat.door?.rotation < 0.5)
681681
{
682-
this.setState(new EnteringVehicle(this, seat));
682+
this.setState(new OpenVehicleDoor(this, seat, entryPoint));
683683
}
684684
else
685685
{
686-
this.setState(new OpenVehicleDoor(this, seat, entryPoint));
686+
this.setState(new EnteringVehicle(this, seat));
687687
}
688688
}
689689

0 commit comments

Comments
 (0)