You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 small fix
This commit is contained in:
@@ -357,9 +357,9 @@ export class RoomEngine implements IRoomEngine, IRoomCreator, IRoomEngineService
|
||||
|
||||
let direction: IVector3D = null;
|
||||
|
||||
if(doorDirection === 90) direction = new Vector3d(-2000, 0, 0);
|
||||
if(doorDirection === 90) direction = new Vector3d(-3000, 0, 0);
|
||||
|
||||
if(doorDirection === 180) direction = new Vector3d(0, -2000, 0);
|
||||
if(doorDirection === 180) direction = new Vector3d(0, -3000, 0);
|
||||
|
||||
canvas.geometry.setDisplacement(vector, direction);
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ export class RoomVisualization extends RoomObjectSpriteVisualization implements
|
||||
private static LANDSCAPE_COLOR_SIDE: number = 0xCCCCCC;
|
||||
private static LANDSCAPE_COLOR_BOTTOM: number = 0x999999;
|
||||
private static ROOM_DEPTH_OFFSET: number = 2000;
|
||||
private static WALL_DEPTH_OFFSET: number = 1000;
|
||||
|
||||
protected _data: RoomVisualizationData = null;
|
||||
|
||||
@@ -892,6 +891,6 @@ export class RoomVisualization extends RoomObjectSpriteVisualization implements
|
||||
|
||||
public get wallRelativeDepth(): number
|
||||
{
|
||||
return RoomVisualization.WALL_DEPTH_OFFSET + 0.5;
|
||||
return RoomVisualization.ROOM_DEPTH_OFFSET + 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user