realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

Adminotech EC_PhysicsConstraint implementation #679

Closed cvetan5 closed 11 years ago

cvetan5 commented 11 years ago

New EC_PhysicsConstraint component.

cadaver commented 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.