Closed cvetan5 closed 11 years ago
Based on a quick test it seems to be working nicely.
However this code is missing a lot of robustness checks and warnings. Finding the other entity is errorprone at scene load time, because the other entity might not exist yet at the time of creating the component. See how EC_Placeable handles "waiting" for the parent entity.
Also, if the other entity ID is changed (the entity where to connect the constraint changed), the signals for the old entity's ComponentAdded & ComponentRemoved should be disconnected.
It is not a problem to merge this initial version now, just keep these things in mind.
New EC_PhysicsConstraint component.