This patch will add a physics constraints replication for group instances.
Initial patch T31443 from moerdn (Martin Sell).
Differential D658
BGE: Add physics constraints replication Authored by Thomas Szepe (hg1) on Jul 17 2014, 7:28 PM.
Details This patch will add a physics constraints replication for group instances. Initial patch T31443 from moerdn (Martin Sell).
Diff Detail Event TimelineComment Actions This patch is only a update of my old group-constraints8_HG1.patch. Should I duplicate the source of the setup_constraint4object() to KX_Scene? This will allow us to reduce the amount of new includes. Comment Actions In general the constraint handling seems overly complicated, but I guess this might be a simpler fix than over-hauling the constraints system. It's kind of silly how much constraint data we have to duplicate. For example, it would be nice if we could re-setup constraints based on Blender data, but since constraints can be changed at runtime (and we try to avoid modifying Blender data) we have to track constraints ourselves.
Comment Actions Changes:
Comment Actions I don't know enough about how we use Bullet constraints to give any feedback on the semantics of the code. However, I can suggest some changes that I consider code quality improvements.
Comment Actions The code is starting to look a lot better! It's certainly an improvement over the original. I've added inline comments, mostly about code style and missing comments.
Comment Actions Done changes, except (*git)->GetPhysicsController() it is only used two times. In that case I think it don't improve readability. About the double conversation. Comment Actions Getting better and better :)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||