spritebuilder / SpriteBuilder

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

Sprite Builder should display some error when user sets the physics shape to circle and tries to set the corner values of dynamic physics body to 0. #1594

Open Shahidwerplay opened 9 years ago

Shahidwerplay commented 9 years ago
  1. Launch Application.
  2. Create a new project.
  3. Drag and drop a CCPhysics Node.
  4. Drop to physics bodies under it, enable their physics, make one of them static and other dynamic.
  5. Change the physics shape of both physics bodies to circle and sets their corner values =0.
  6. Publish the project, build and run it on XCode.

--Observe: Xcode terminates with error: Body's mass and moment must be positive to simulate.

--Result: Sprite Builder should display some error when user sets the physics shape to circle and tries to set the corner values of dynamic physics body to 0.

SB Version: Latest Develop Branch (2.0) SB Revision: 3c4db04 Mac OS 10.10.0 XCode 6.1

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