Use angle instead of direction
This commit is contained in:
parent
d3f66e2958
commit
6351a67703
5 changed files with 19 additions and 16 deletions
|
|
@ -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,
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in a new issue