cocos2d-objc icon indicating copy to clipboard operation
cocos2d-objc copied to clipboard

Missing important variables in CCPhysicsJoint

Open applesoftver opened this issue 11 years ago • 0 comments

Please add in min and maxDist variables to CCPhysicsSlideJoint. For example: in CCPhysicsJoint.h /// @name Accessing Physics Joint Attributes /** Maximum allowed distance between anchor points */ @property(nonatomic, readwrite) CGFloat maxDist;

in CCPhysicsJoint.h @implementation CCPhysicsSlideJoint { .......... CGFloat maxDist; } @synthesize maxDist; -(id)initWithBodyA:(CCPhysicsBody *)bodyA bodyB:(CCPhysicsBody *)bodyB anchorA:(CGPoint)anchorA anchorB:(CGPoint)anchorB minDistance:(CGFloat)min maxDistance:(CGFloat)max { if((self = [super init])){ ..................... maxDist = max; // I added it. APLLESOFTVER }

return self;

}

Thank you

applesoftver avatar Jun 27 '14 07:06 applesoftver