Refactor
This commit is contained in:
parent
a3f76f5c77
commit
99e1923066
6 changed files with 47 additions and 33 deletions
|
|
@ -3,6 +3,8 @@ import { vec2 } from 'gl-matrix';
|
|||
export interface Agent {
|
||||
position: vec2;
|
||||
angle: number;
|
||||
species: number;
|
||||
timeToLive: number;
|
||||
}
|
||||
|
||||
export const AGENT_SIZE_IN_BYTES = 4 * 4;
|
||||
export const AGENT_SIZE_IN_BYTES = 6 * Float32Array.BYTES_PER_ELEMENT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue