Hi!
I'm trying to develop a simple game. The idea is to balance a ball on cource filled with obstacles and so on.
Currently I have a ball represented by a dynamic body and a simple plane as a static body. Then you control the ball by applying forces in
any direction. This works well as long as the ball is moving but when it stops on the plane surface it won't move again despite how large forces that are applied to it.
The collision bodies are a cube for the static plane and a sphere for the ball.
Any one experience the same problem? In that case I will be very happy for any help!
Thanks
Collision between static and dynamic surfaces
-
- Posts: 4
- Joined: Sun Nov 08, 2009 11:06 am
-
- Posts: 34
- Joined: Tue Mar 04, 2008 3:16 pm
Re: Collision between static and dynamic surfaces
Did you try to activate the sphere when you apply a force to it?
rigidBody->activate(true);
rigidBody->activate(true);
-
- Posts: 4
- Joined: Sun Nov 08, 2009 11:06 am
Re: Collision between static and dynamic surfaces
Well no!
That was the problem!
Thank you very much didn't know that you had to activate it.
That was the problem!
Thank you very much didn't know that you had to activate it.