custommultibodyvehicle problem

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: custommultibodyvehicle problem

Postby Julio Jerez » Tue May 11, 2010 8:53 am

collerblade wrote:Now im using the newes (2.20) dll. And i think raycastcar isnt good for me because im writing a rally game, so i dont wanna change. But i tried raycastcar, & i think multibodycar is far more better.


because you are making a rally game, is the reason why using the ray cast car joint. it will save you lot of agravation
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: custommultibodyvehicle problem

Postby collerblade » Tue May 11, 2010 12:53 pm

Hi all

So.. I tried everything. I tried Daves idea (didnt work). Now my car has no suspension (i tought that couse the problem). It is even worse. I tried to switch the index of the tires. But nothing helped so far.
When i release the forward key, the car stops turning and its going forward. That is correct.
But without any suspension the movement of car is even worse.
collerblade
 
Posts: 88
Joined: Mon Apr 05, 2010 12:09 pm

Re: custommultibodyvehicle problem

Postby Julio Jerez » Tue May 11, 2010 1:51 pm

are you talking of the Raycast car? You have me all confused.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: custommultibodyvehicle problem

Postby collerblade » Tue May 11, 2010 5:35 pm

no no sorry (:

Im talking about multibody vehicle. I tried raycastcar a month ago (its worked fine), but i think multibody car is far more better for a rally game. So now im trying to implement a multibody-car.

My problem: when i apply a torque with ApplyTireTorque(), the car goes left or right (random), but no forward or backward. When i apply 0 torque to the tires, the car works fine.

Now i set the suspension of my car to 0 length. But the situation become worse. I made another video about it, but i can upload it only tomorrow.

Thx CollerbladE
collerblade
 
Posts: 88
Joined: Mon Apr 05, 2010 12:09 pm

Re: custommultibodyvehicle problem

Postby Julio Jerez » Tue May 11, 2010 6:06 pm

collerblade wrote:Im talking about multibody vehicle. I tried raycastcar a month ago (its worked fine), but i think multibody car is far more better for a rally game.

This is my last advise, i assume you are not making a simulation that is meant to run a low speed, you are making an arcade type game meant to be fun and fast
if you are making a rally game, I really, really recomend you use the ray cast car. Check this car from Dave. he uses both.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: custommultibodyvehicle problem

Postby bleubleu » Tue May 11, 2010 7:50 pm

Julio is right. Give the ray cast car a 2nd try. The latest iteration is really getting there and it is WAY more stable than any multibody vehicle will ever be...

Modeling a car in a physics engine like it is in real life might sound like a good idea, but it is very tricky to make it work and you will most likely have to take tiny time step to maintain the whole system stable.

Go raycast!

-Mat
bleubleu
 
Posts: 17
Joined: Sat Apr 21, 2007 5:51 pm
Location: Montreal, Canada

Re: custommultibodyvehicle problem

Postby collerblade » Wed May 12, 2010 3:56 am

Nice video... :)

Ok. I red somewhere, that raycastcar is for arcade games, and multibodyvehicle is for more complex simulations (for example rally games). But if Dave can use it, why istn't working for me? I dont understand it..
collerblade
 
Posts: 88
Joined: Mon Apr 05, 2010 12:09 pm

Re: custommultibodyvehicle problem

Postby Stucuk » Wed May 12, 2010 5:23 pm

Dave is using a new version of the DGRaycastCar (He did the one thats currently being used) which he hasn't released yet, so the current implementation proberly won't be as good by default.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron