6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: newton
[Re: ventilator]
#205930
05/09/08 16:10
05/09/08 16:10
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
does this newton lite-c code supports vehicle physics?
Ubi bene, ibi Patria.
|
|
|
Re: newton
[Re: ventilator]
#205942
05/09/08 17:35
05/09/08 17:35
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
oh great. i worked with vehicles with old a6 newton plugin and before couple of months i started using lite-c so...thanks
and BTW, what are you planning to do more on this newton lite-c?
??? QUESTION...when i tried to put two newton vehicles back on a6 (before) they didn't collided with each other. do you know maybe why?
Ubi bene, ibi Patria.
|
|
|
Re: newton
[Re: croman]
#205982
05/09/08 22:20
05/09/08 22:20
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
i don't know what to put under upDir...??? NewtonConstraintCreateVehicle (const NewtonWorld* newtonWorld, const dFloat* upDir, const NewtonBody* body);
my code goes... ... car = ent_create("car.mdl", camera.x, NULL); NewtonBody *car_body = newton_addentity(car, 10, NEWTON_CONVEXHULL, onforceandtorque); car_body = NewtonConstraintCreateVehicle (n_world, ""0"", car); ...
can someone please help? with what should i replace ""0"" part of my code???
Ubi bene, ibi Patria.
|
|
|
Re: newton
[Re: VeT]
#206118
05/11/08 10:19
05/11/08 10:19
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
no,no...that ""0"" must be replaced with "const dFloat* upDir".
NEWTON_API NewtonJoint* NewtonConstraintCreateVehicle (const NewtonWorld* newtonWorld, const dFloat* upDir, const NewtonBody* body);
that says in newton.c from ventilator. now i don't understand what type is const dFloat* updir,..what's that?
Ubi bene, ibi Patria.
|
|
|
|