Skip to content

Chipmunk error: Body's force is invalid #1033

Open
@ypmits

Description

@ypmits

I'm having a small problem here.
When I'm touching the screen I'm using 'applyForce:' on the physicsBody of a character in my game. When I'm pausing the game through 'CCNode.paused = true' everything works fine, but when I'm unpausing my game I'm getting the following error:
Aborting due to Chipmunk error: Body's force is invalid.
Failed condition: cpfabs(v.x) != INFINITY && cpfabs(v.y) != INFINITY
Source:/Users/davelenz/Documents/Work/Games/spacegame2014SB.spritebuilder/Source/libs/cocos2d-iphone/external/Chipmunk/src/cpBody.c:107

I must say I'm touching the screen with two fingers now. One is still touching the screen to give my character force and the other finger is 'pausing' and 'unpausing' the game. I think I can work around it but I also think this isn't suppose to happen.

I'm using the latest beta-build of Spritehelper and Cocos2d 3.3.0-develop

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions