spritebuilder / SpriteBuilder

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

Node is not starting from correct position when the user enables the physics of both the node and CCPhysicsNode. #1568

Open Shahidwerplay opened 9 years ago

Shahidwerplay commented 9 years ago
  1. Launch Application.
  2. Create an empty project.
  3. Drag and drop a CCPhysics node onto the stage. Position (X=260 Y=160) in points.
  4. Set the Gravity of CCPhysicsNode as X=10 Y=10 from property inspector so that the movement is towards top right.
  5. Drag and drop a colornode under the CCPhysics Node, and set its Position (X=0 Y=0) in points.
  6. Enable the physics of both, node and the physicsnode.
  7. Publish the project. Build and run it on XCode.

    --Result: Node is not starting from correct position when the user enables the physics of both the node and CCPhysicsNode. it starts from bottom left even though its at position (X=260 Y=160) in points, which is the centre of the screen

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-b8Mnc2Z1B4VmxOUTg/view?usp=sharing