gfx - car physics and ramp with ODE (slow motion)
Loading...
204
views
Loading...
Uploader Comments (phpboxxx)
see all
All Comments (10)
-
thanks for assistance. I think the dParamVel1, and the dParamFMAx1 are the only real issues. if i declare them dReals, it compiles successfully, as all other things have been converted to C painlessly.
Also, how did you bind the ode bodies and geometries to actual 3d object? And i don't know if it's too much to ask, but, do you mind sending me your wavefront loader? I found a 3ds loader, cleaned it up, and used it, but it has memory leak issues. Yet to find a robust, efficient 3d loader.
-
connverted it all to C, added neccessary variables that were not present, (MAX_CONTACTS, etc) but didn't really get it to compile in entirety.
Loading...
firstly,
>>>>> issue one [unsolved]
variables dParamVel1, and dParamFMax1 undeclared. Though declaring these as dReals would easily solve this issue, I wonder if they are standard, and I didn't include a header file?
>>>>> issue two [solved?]
DEGTORAD was uindeclared. Solved by doing the following:
double pie = 3.142857143f, pie_symbol = 180.0f; DEG2RAD = angle/pie * pie/pie_symbol;
Cavemanbennett 9 months ago
@Cavemanbennett I am finally able to answer, sorry for the long delay.
first problem:
those 2 should be declared by the header file indeed, but maybe their name is slightly different when you use C. I have seen some headers written for freebasic where the imported fucntions got a slightly different name.
second problem:
DEGTORAD is PI / 180 in my code.
phpboxxx 8 months ago
thanks...didn't get it to compile, but thanks for your setup. Could learn from it.
Cavemanbennett 9 months ago
@Cavemanbennett What are the problems while compiling, any errors? Maybe i can somehow help to get it going.
phpboxxx 9 months ago
what are you using for graphics?
Cleay your using ode for physics. But what for gfx.
And if so, can you email me your code?
Thuss far , I can code from scratch, working ode simulation with falling cubes, coliding into an ode plane....would love o use this as a guide to using ode,
Cavemanbennett 9 months ago
@Cavemanbennett for graphics i use opengl, with the 3d engine i develop.
for car setup with ode look here
tinyurl dot com/3paaloh
phpboxxx 9 months ago