Skip to content

Commit

Permalink
style: model scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Cygnusfear committed Oct 8, 2023
1 parent 64b7dbb commit 7fdd4fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified packages/client/public/models/facilities.glb
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/client/src/game/entities/facility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { faceDirections } from "@/lib/utils";
import { IFacility } from "../types/entities";

const Renderer = (props: IFacility) => {
const { colorPrimary, colorSecondary, scale, variant, rotation } = props;
const { colorPrimary, colorSecondary, variant, rotation } = props;
const {
assets: { meshes },
} = useStore();
Expand All @@ -26,7 +26,7 @@ const Renderer = (props: IFacility) => {
return (
<group
dispose={null}
scale={scale.multiplyScalar(0.7)}
scale={new Vector3(1, 1, 1)}
position={[0, 0, 0]}
rotation={[0, rotation.y, 0]}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/game/systems/constructionSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const buildFacility = (position: Vector3) => {

const newFacility = {
position: position,
scale: new Vector3(Math.random() * 0.1 + 0.9, 1, Math.random() * 0.1 + 0.9),
scale: new Vector3(1, 1, 1),
colorPrimary: getRandom(palette.buildingPrimary),
colorSecondary: getRandom(palette.buildingSecondary),
entityRef: createRef<THREE.Mesh>(),
Expand Down

0 comments on commit 7fdd4fb

Please sign in to comment.