DGRaycastVehicle Problem

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

DGRaycastVehicle Problem

Postby mlazo » Thu Feb 18, 2010 11:55 am

Hi, i have a problem using DGRaycastVehicle. I'm using NGD 2.16 on Delphi 2007 and newtonimport_216_beta.

Im create the vehicle with following sentences:
Code: Select all
Joint := DGRaycastVehicleCreate (0, @tmp[0], body);  //0: because with 1, 2, 3 or 4 tires throw error too.
                                                                                //tmp = [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1 ]
DGRaycastVehicleSetTireTransformCallback (Joint, @TireTransformCallback);


When i call :
Code: Select all
NewtonUpdate(world, step);


throw error : "Access Violation at adress...." :shock:

Any idea ¿?

Thanks !!
User avatar
mlazo
 
Posts: 10
Joined: Wed Mar 12, 2008 10:27 am

Re: DGRaycastVehicle Problem

Postby Dave Gravel » Thu Feb 18, 2010 1:46 pm

Maybe your better to use CustomBasicRayCastCar or CustomMultiBodyVehicle.
DGRaycastVehicle is make from a older newton beta, and it is only a experimental test.
I'm not 100% sure if it working again with the beta 2.16.
I don't have get times to test it with the last beta,
Currently I have work only with the multibodyvehicle under the 2.16.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: DGRaycastVehicle Problem

Postby Dave Gravel » Thu Feb 18, 2010 2:16 pm

http://sites.google.com/site/orionx3d/D ... le_B19.zip

I think this is my last test with the raycast vehicle.
You can take a look on the code and see how I use it before, maybe it can help.
Or maybe you can play with the code too.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: DGRaycastVehicle Problem

Postby mlazo » Thu Feb 18, 2010 2:51 pm

Dave, Thanks for quick reply. I'll take a look to your code. See you
User avatar
mlazo
 
Posts: 10
Joined: Wed Mar 12, 2008 10:27 am


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 4 guests

cron