Using phent

Posted By: DLively

Using phent - 04/28/15 22:49

Hi. I'm just looking into some older code for another user. Perhaps someone could tell me how to regain access to phent params (instead of pXent params with ackphysX.h)

Is there an include file I need to add? I looked in the includes folder and didn't find anything smirk

Regards.
Posted By: Quad

Re: Using phent - 04/28/15 23:56

IIRC phent functions was replaced with pXent functions. phent was from the times when the physx plugin was not a part of the engine.

Though i suspect everything would work out of the box just by changing every phent with pxent.
Posted By: DLively

Re: Using phent - 04/29/15 00:24

You'd think that, but there are some functions that don't translate over easily.. There are few but they're there.

also, when trying to pass information into them, there are parameters that no longer exist in the pX functions..

phcon_setmotor(0,0,0,0);
..
pXcon_setmotor(0,0,0);

there are also engine vars that don't exist anymore too like turb_speed(default is 1)

Thanks for your time laugh
Posted By: 3run

Re: Using phent - 04/29/15 07:09

Originally Posted By: DLively
Hi. I'm just looking into some older code for another user. Perhaps someone could tell me how to regain access to phent params (instead of pXent params with ackphysX.h)

Is there an include file I need to add? I looked in the includes folder and didn't find anything smirk

Regards.
Physics engine has completely changed, ph_ is not there any more!

Take a look at obsolete syntax.


The way old ODE and physX work are completely different! But to make it more convenient to convert older projects into A8 and physX, they use same functions (basic ones). Anyway everything has changed, the values from ODE won't work correctly with physX, even if some of them will get 'working' results by an accident, they may cause troubles when scene will get more complex and will contain some complex simulations.

Best regards
Posted By: DLively

Re: Using phent - 04/29/15 07:17

Yeah I stopped looking into this right after I asked this question and went to the A8 phyisX laugh

Thanks for sharing 3Run!
© 2024 lite-C Forums