Some refactoring
This commit is contained in:
parent
a51c06ae7b
commit
99f47e2961
2 changed files with 72 additions and 113 deletions
|
|
@ -10,8 +10,6 @@ export class Blob implements IShape {
|
|||
protected readonly headRadius = 40;
|
||||
protected readonly footRadius = 15;
|
||||
|
||||
protected readonly k = 1000000;
|
||||
|
||||
private readonly headOffset = vec2.fromValues(0, -15);
|
||||
private readonly leftFootOffset = vec2.fromValues(-12, -60);
|
||||
private readonly rightFootOffset = vec2.fromValues(12, -60);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { IShape } from '../i-shape';
|
||||
import { BoundingBox } from '../bounding-box';
|
||||
import { GameObject } from '../../objects/game-object';
|
||||
import { BoundingBox } from '../bounding-box';
|
||||
import { IShape } from '../i-shape';
|
||||
|
||||
export class Circle implements IShape {
|
||||
public readonly isInverted = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue