3 ms·
The basic OOP solution relies on mutable aliasing being available, where any entity can reference any other entity. Rust won't let you have arbitrary mutable a
by pornel 6y ago
The basic OOP solution relies on mutable aliasing being available, where any entity can reference any other entity.
Rust won't let you have arbitrary mutable aliasing or risk dangling pointers, so you'd end up fighting the language. In Rust ECS is actually easier, and it's a better fit for the single ownership, shared XOR mutable model.
- slmjkdbtl 6y agoThat's also why I don't recommend Rust for game dev beginners, I think the most important thing for beginner is to experience the fun of game dev, which is making game logic and making the actual game, even if you go Rust with ECS, you'll still spend most of the time learning ECS, solving compile errors and waiting compilation, stuff that does not have any game dev fun.