News for hackers. Stuff that matters.
Re:Data-oriented design or why you might shoot yourself in t... by bruce343434 on Monday June 28, 2021 @05:33AM (#27659699)
I think you are over engineering it. The way I imagine it:

Car {float throttle, float brake, float wheel} inherits PhysicalObject {velocity, mass, position}

Agent.accelerate(Car c){ c.throttle++; }

Agent.drive(Car c){ ... accelerate(c); ... }

Human inherits Agent

There are no comments on this comment yet.