spritebuilder / SpriteBuilder

Objective-C Game Development Suite
http://www.spritebuilder.com/
Other
740 stars 292 forks source link

CCPhysics Pivot joint retains its maximum and breaking force even after when the user disables them and set the default values. #1569

Open Shahidwerplay opened 9 years ago

Shahidwerplay commented 9 years ago
  1. Launch Application.
  2. Create a project.
  3. Drag and drop a PhysicsNode.
  4. Drag and drop two physics bodies under the physicsNode. Make one of them static and other one dynamic
  5. Drag and drop a CCPhysics Pivot joint and attach its ends with both physics bodies.
  6. Set Maximum force value as 1000.00 and breaking force as 10.00.
  7. Publish the project and run it on XCode.

    --Observe: With the force set, they spring breaks and the dynamic physics body fall off the screen.

  8. Go to SB and change the maximum and breaking force to their default values i.e. infinity.
  9. Publish the project and run it on XCode.

    --Observe:The physics bodies should work properly and shouldn't break. (Expected)

    --Result: CCPhysics Pivot joint retains its maximum and breaking force even after when the user disables them and set the default values. The spring still breaks on its default values but it shouldn't.

SB Version: Latest Develop Branch (2.0) SB Revision: 4fd68fb2bf Mac OS 10.10.0 XCode 6.1

Video Link: https://drive.google.com/file/d/0B5-RfBatv-b8anF2U1ZUOTBGVUk/view?usp=sharing