AggrorJorn Posted March 6, 2013 Posted March 6, 2013 I have this sphere in my scene that I want to move using forces. However, as soon as I apply the following: model->AddForce(speed * Time::GetSpeed(),0,0); the gravity of this object is almost reduced to 0 velocity. Also, when trying to add a force to implement jumping, the sphere looks more like it is being positioned rather than and actual force is being applied. The jumping code is only activated when space is pressed and looks similair to the movement like above with the movement: model->AddForce(0, jumpForce * Time::GetSpeed(),0); This is the code of creating the sphere: //Create a sphere model = Model::Sphere(16); model->SetPosition(0,4,0); model->SetMass(1); //Create a shape shape = Shape::Sphere(0,0,0,0,0,0,1,1,1); model->SetShape(shape); shape->Release(); Quote
AggrorJorn Posted March 6, 2013 Author Posted March 6, 2013 Uploaded the source of the player and exe. Quote
YouGroove Posted March 8, 2013 Posted March 8, 2013 I didn't put attention , but what is used ? ODE, Bullet, Physix ? Quote Stop toying and make games
AggrorJorn Posted March 8, 2013 Author Posted March 8, 2013 Newton dynamics. http://www.newtondynamics.com/ Quote
YouGroove Posted March 8, 2013 Posted March 8, 2013 Great. this is LE 2 or LE 3 ? Well your problem is indeed strange Quote Stop toying and make games
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.