A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by yan007 » Wed Jul 07, 2010 2:43 pm
Hi all,
I noticed the Vehicle functions are gone in NGD 2.x,
is there a replacement for this? (I found the vehicle classes very easy and helpfull)
if not, will there be a replacement made in the future (when)?,
else what to do if you need to program a vehicle?
thanks in advance,
Y.
-
yan007
-
- Posts: 7
- Joined: Wed Jul 07, 2010 2:30 pm
by PJani » Wed Jul 07, 2010 3:09 pm
MultiBodyVehicleJoint u have it in jointlibrary

| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
-

PJani
-
- Posts: 448
- Joined: Mon Feb 02, 2009 7:18 pm
- Location: Slovenia
by yan007 » Thu Jul 08, 2010 8:53 am
Thx,
Have some extra questions:
1) are there a lot of changes in the "CustomMultiBodyVehicle" joint comparing to the old vehicle in NGD 1.53?
2) while checking this jointlibrary, i noticed "CustomDGRayCastCar", what the difference with "CustomMultiBodyVehicle"
if this is usefull, when do you use CustomMultiBodyVehicle or CustomDGRayCastCar
3) In "JointLibrary.h" i saw al the functions for MultiBodyVehicle and RayCastCar are commented,
is this because they are still work in progress?
4) what is the reason why the Vehicle joint functions where removed and replaced by these custom joints?
-
yan007
-
- Posts: 7
- Joined: Wed Jul 07, 2010 2:30 pm
by PJani » Thu Jul 08, 2010 10:22 am
1. Hmm some functions doesnt exists anymore you need to write them by your self and there is problem with wheel friction.
2. CustomDGRayCastCar wheels are implemented by using raycasting. RayCast car, i would recommend you for racing where your car needs to have high speed. MultiBodyVehicle i am using for "offroad" because whole wheel is in game.
3. They are commented because you will need to include CustomMultiBodyVehicle.h which resides in CustomJoint and do the work from there.
4. Replaced was because joints are now open sourced, which was imposible with build in joints. You can make your own joints.
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
-

PJani
-
- Posts: 448
- Joined: Mon Feb 02, 2009 7:18 pm
- Location: Slovenia
by yan007 » Thu Jul 08, 2010 10:46 am
They are commented because you will need to include CustomMultiBodyVehicle.h which resides in CustomJoint and do the work from there.
Does this mean those custom joints by default aren't in the Newton Library and you should built NGD yourself to add them ?
-
yan007
-
- Posts: 7
- Joined: Wed Jul 07, 2010 2:30 pm
by PJani » Thu Jul 08, 2010 11:18 am
yan007 wrote:They are commented because you will need to include CustomMultiBodyVehicle.h which resides in CustomJoint and do the work from there.
Does this mean those custom joints by default aren't in the Newton Library and you should built NGD yourself to add them ?
No no, they are in JointLibrary.dll. I am just saying you will need to include CustomMultiBodyVehicle.h because the interface is C++ not C as is in JointLibrary.h
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
-

PJani
-
- Posts: 448
- Joined: Mon Feb 02, 2009 7:18 pm
- Location: Slovenia
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest