Hey, Jason.
Thanks for reaching out.
So, I’m looking through the chapter now, and I’m not sure what you mean, so please forgive me if I’m not answering your question properly.
On page 301 (Creating the Agent Component), which I’m sure doesn’t align with your reader’s page numbers, there’s a bit of code that you need to add to the didAddToEntity()
method. Specifically, the line that reads scene.agentComponentSystem.addComponent(agent)
is where that component gets added, causing it to participate in the updates.
Is it possible that you missed that step? If not, maybe I’m misunderstanding what’s happening, which could be the case. Let me know. Thanks!
Also, I’m so happy to read that you’re enjoying the book. I had a lot of fun writing it.