How can I connect theses two sprites? But not a joint where it moves but a solid connection where both of them stay together? Thank you :)
cart = [CCSprite spriteWithImageNamed:@"bottomCart.png"];
cart.position = ccp(self.contentSize.width/2, self.contentSize.height/3);
cart.physicsBody = [CCPhysicsBody bodyWithRect:(CGRect){CGPointZero, cart.contentSize} cornerRadius:0];
cart.physicsBody.collisionGroup = @"cartGroup";
cart.physicsBody.collisionType = @"cartCollision";
cart.physicsBody.type = CCPhysicsBodyTypeDynamic;
[_physicsWorld addChild:cart];
wheel1 = [CCSprite spriteWithImageNamed:@"blackball.png"];
wheel1.position = ccp(self.contentSize.width/2, self.contentSize.height/3);
wheel1.physicsBody = [CCPhysicsBody bodyWithCircleOfRadius:wheel1.contentSize.width/2.0f andCenter:wheel1.anchorPointInPoints];
wheel1.physicsBody.collisionGroup = @"cartGroup";
wheel1.physicsBody.collisionType = @"cartCollision";
wheel1.physicsBody.type = CCPhysicsBodyTypeDynamic;
[_physicsWorld addChild:wheel1];