fix build error

This commit is contained in:
kakkokari-gtyih 2025-08-24 09:08:41 +09:00
parent 4115241da4
commit 9a5a085e7b
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ export class DropAndFusionGame extends EventEmitter<{
}
private createBody(mono: Mono, x: number, y: number) {
const options: Matter.IBodyDefinition = {
const options = {
label: mono.id,
density: this.gameMode === 'space' ? 0.01 : ((mono.sizeX * mono.sizeY) / 10000),
restitution: this.gameMode === 'space' ? 0.5 : 0.2,
@ -196,7 +196,7 @@ export class DropAndFusionGame extends EventEmitter<{
slop: this.gameMode === 'space' ? 0.01 : 0.7,
//mass: 0,
render: this.getMonoRenderOptions ? this.getMonoRenderOptions(mono) : undefined,
};
} satisfies Matter.IChamferableBodyDefinition;
if (mono.shape === 'circle') {
return Matter.Bodies.circle(x, y, mono.sizeX / 2, options);
} else if (mono.shape === 'rectangle') {