Use angle instead of direction

This commit is contained in:
Andras Schmelczer 2023-05-20 11:45:11 +01:00
commit 6351a67703
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 19 additions and 16 deletions

View file

@ -52,7 +52,8 @@ export class AgentPipeline {
new Float32Array(this.agentsBuffer.getMappedRange()).set(
agents.flatMap((agent) => [
...agent.position,
...agent.direction,
agent.angle,
0, // padding
agent.species,
agent.timeToLive,
])