AggrorJorn Posted March 6, 2013 Share 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 Link to comment Share on other sites More sharing options...
Admin Posted March 6, 2013 Share Posted March 6, 2013 Have you got an example I can run? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 6, 2013 Author Share Posted March 6, 2013 Uploaded the source of the player and exe. Quote Link to comment Share on other sites More sharing options...
Admin Posted March 6, 2013 Share Posted March 6, 2013 Thanks. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 8, 2013 Author Share Posted March 8, 2013 Did you manage to find anything? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 8, 2013 Share Posted March 8, 2013 I didn't put attention , but what is used ? ODE, Bullet, Physix ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 8, 2013 Author Share Posted March 8, 2013 Newton dynamics. http://www.newtondynamics.com/ Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 8, 2013 Share Posted March 8, 2013 Great. this is LE 2 or LE 3 ? Well your problem is indeed strange Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 8, 2013 Author Share Posted March 8, 2013 both of them use newton. Quote Link to comment Share on other sites More sharing options...
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.