hi community...
I'm facing a new strange problem !!
Actually and simply i make a b2_kinematicBody box with
Then i put inside him a b2_DynamicBody box and the gravity is b2Vec2(0,-10), then i set the
and notice that the dynamic box remind in the b2_kinematicBody for a small time and then it run away out the b2_kinematicBody !!
why this occurs ?! the b2_kinematicBody box is close and really i need the Angular Velocity stay to 4.0 and not need to decrease it
how can i fix this ??
Any idea?? 😀 😀
I'm facing a new strange problem !!
Actually and simply i make a b2_kinematicBody box with
Code: Select all
boxShape.SetAsEdge(leftDown,rightDown);
body->CreateFixture(&newshape,2);
newshape.SetAsEdge(rightDown,rightUp);
.... and so onThen i put inside him a b2_DynamicBody box and the gravity is b2Vec2(0,-10), then i set the
Code: Select all
boxShape->SetAngularVelocity(4.0f);and notice that the dynamic box remind in the b2_kinematicBody for a small time and then it run away out the b2_kinematicBody !!
why this occurs ?! the b2_kinematicBody box is close and really i need the Angular Velocity stay to 4.0 and not need to decrease it
how can i fix this ??
Any idea?? 😀 😀