Improve agent agression

This commit is contained in:
Andras Schmelczer 2023-05-27 20:44:05 +01:00
commit a95a5f83a3
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
8 changed files with 66 additions and 92 deletions

View file

@ -49,9 +49,9 @@ export class AgentPipeline {
turnSpeed,
sensorOffsetAngle,
sensorOffsetDistance,
evenGenerationAggression,
oddGenerationAggression,
nextGenerationId,
currentGenerationAggression,
nextGenerationAggression,
isNextGenerationOdd,
center,
radius,
turnWhenGoingInTheRightDirection,
@ -60,9 +60,9 @@ export class AgentPipeline {
deinfectionProbability,
agentCount,
}: AgentSettings & {
evenGenerationAggression: number;
oddGenerationAggression: number;
nextGenerationId: number;
currentGenerationAggression: number;
nextGenerationAggression: number;
isNextGenerationOdd: number;
center: vec2;
radius: number;
agentCount: number;
@ -77,9 +77,9 @@ export class AgentPipeline {
turnSpeed,
(sensorOffsetAngle * Math.PI) / 180,
sensorOffsetDistance,
evenGenerationAggression,
oddGenerationAggression,
nextGenerationId,
currentGenerationAggression,
nextGenerationAggression,
isNextGenerationOdd,
...center,
radius,
turnWhenGoingInTheRightDirection,