Posted Today, 02:56 PMyckx, on 24 Aug 2013 - 2:02 PM, said:
Most components also hold a reference to a functor. Components such as position/orientation don't.
so your movement "flight model" is hard coded?
As a functor, yes. It's less gross to me than having several types of movable components and hardcoding their various behaviors in the physics system itself. And it's swappable, so I could switch it with a "drive_model" or "swim_model" or whatever, when the entity lands.
The idea was to convert it to a script handle for the relevant system to call once I had Lua integrated to my satisfaction, but I never got very far with that before real life got in the way.
EDIT: I need a better phone of I'm going to keep posting from one :p