hi im trying to collide 2 object but i have this message error.
Assertion failed: area > 1.192092896e-07F, file …\src\box2d\Box2D\Collision\Shapes\b2PolygonShape.cpp, line 115
hi im trying to collide 2 object but i have this message error.
Assertion failed: area > 1.192092896e-07F, file …\src\box2d\Box2D\Collision\Shapes\b2PolygonShape.cpp, line 115
Here is the offending line:
Can you check that the collision shape dimension values are sane?
where i see that? the dimensions of the collisionobject?
What’s the scale of the game object when you spawn this object?
its 1.5
Also, I believe the physics.scale
is relevant. What value does that have in your game.project
?
in game.project the scale is 1.0
Then it’s weird, since that area should be 135.
I’d double check in the scripts first, that nothing accidentally sets the scale to something extremely small.
Double check the dimensions of the other objects too.
the dimensions of the other objects is 250 x 20, and when i delete the bullet collision the game works well D:, the dimensions of the image is 16x16 pixels
edit: nevermind i don’t know why the box shape it gave me error, but i change the shape for sphere and works well, thanks for the help