Joint constructor
Joint(
- JointConfig config
Implementation
Joint(this.config):super(){
b1Link = JointLink(this);
b2Link = JointLink(this);
body1 = config.body1;
body2 = config.body2;
localAnchorPoint1 = Vec3().copy( config.localAnchorPoint1 );
localAnchorPoint2 = Vec3().copy( config.localAnchorPoint2 );
allowCollision = config.allowCollision;
scale = config.scale;
invScale = config.invScale;
}