Nape Physics.
Discussions and help with Nape physics engine.


Home » Nape Physics » Help! » Wheels, motor joint and downhills/uphills
Wheels, motor joint and downhills/uphills [message #3465] Sun, 19 August 2012 08:13 Go to next message
jurito  is currently offline jurito
Messages: 3
Registered: August 2012
Location: Italy
Junior Member
To start, my biggest compliments for such an embarassing great project as Nape..

Then, my problem is about a prototype of a bike/car game i'm doing, side scrolling.
I did use a motorjoint on the back wheel , with a rate that i multiply on every tick for a damping.
It works quite fine but of course if i don't thrust it when in downhills it stops (or when in uphill, it won't accelerate backwards, as you want to see it Smile )
What i'd like is to add some inertia to the motor force, so that if it's low the ground shape conformation overcomes it.
How would you do that?

TIA
Re: Wheels, motor joint and downhills/uphills [message #3467 is a reply to message #3465] Thu, 23 August 2012 09:48 Go to previous messageGo to next message
charlie_says  is currently offline charlie_says
Messages: 95
Registered: July 2011
Member
Have you tried decreasing the rate to 0 when you're not thrusting?
Re: Wheels, motor joint and downhills/uphills [message #3481 is a reply to message #3467] Sun, 26 August 2012 10:51 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
You probably want to set the maxForce property of the motorjoint which would be more realistic and would also give you 'engine braking' when you're not pressing the accelerator. Essentially what you have now with maxForce = infinity (default) is engine braking that is so powerful you instantly stop.


I created nape!
Re: Wheels, motor joint and downhills/uphills [message #3820 is a reply to message #3481] Mon, 15 October 2012 10:11 Go to previous messageGo to next message
jurito  is currently offline jurito
Messages: 3
Registered: August 2012
Location: Italy
Junior Member
Woah i just found this answer after ages! the project got frozen and well..
Anyway, i tried playing with maxForce values and it works BUT it now seem to ignore my rate setting Neutral
Re: Wheels, motor joint and downhills/uphills [message #3822 is a reply to message #3465] Mon, 15 October 2012 11:36 Go to previous message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
Perhaps your maxForce is too low?


I created nape!
Previous Topic:body.interactingBodies() question
Next Topic:Graphics for dynamic destruction demo
Goto Forum:
  


Current Time: Tue May 21 07:33:09 BST 2013

Total time taken to generate the page: 0.10685 seconds
.:: Contact :: Home ::.