Jump to content
Sign in to follow this  
LCpl Aaron

Getting Phsyx Suspension right?

Recommended Posts

So i have RedPhonix suspension spread sheet and it works for the most part but im having an issue getting the enough extension from the suspension. even with maxCompression = 1 the suspension is still lower than it is in the model p3d file. What am i missing exactly? when i go over a value of 1 the suspension is fully extended but will not be effected by mMaxDroop and the rear wheel will hang in the air during turns. I have tried tweaking the model config to allow for greated offset values but to no success yet. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
What am i missing exactly?

You are missing that droop and compression have to be the exact same as defined in the model.cfg of the vehicle. Otherwise Physx Wheels and Visual Wheels will not match.

in physx wheel config:

maxDroop = 0.35;

maxCompression = 0.20;

Example Suspension animation:

class Wheel_TL2 {

type="translation";

source="damper";

selection="WTL_2";

axis="Basic_Damper_Destruct_Axis"; // Consist of vertices [0,0,0],[0,0,1]

memory=1;

animPeriod=0;

minValue=0;

maxValue=1;

offset0= -0.35; // equal to maxDroop in PhysX

offset1= 0.20; // equal to maxCompression in PhysX

};

That also means that you shouldnt change these values if you can't modify the model.cfg itself (is the case for binarized models)

Edited by Fennek

Share this post


Link to post
Share on other sites
You are missing that droop and compression have to be the exact same as defined in the model.cfg of the vehicle. Otherwise Physx Wheels and Visual Wheels will not match.

in physx wheel config:

maxDroop = 0.35;

maxCompression = 0.20;

Example Suspension animation:

class Wheel_TL2 {

type="translation";

source="damper";

selection="WTL_2";

axis="Basic_Damper_Destruct_Axis"; // Consist of vertices [0,0,0],[0,0,1]

memory="true";

animPeriod=0;

minValue="0";

maxValue="1";

offset0= "-0.35"; // equal to maxDroop in PhysX

offset1= "0.20"; // equal to maxCompression in PhysX

};

That also means that you shouldnt change these values if you can't modify the model.cfg itself (is the case for binarized models)

i didn't know that. thanks for the info!

Share this post


Link to post
Share on other sites
You are missing that droop and compression have to be the exact same as defined in the model.cfg of the vehicle. Otherwise Physx Wheels and Visual Wheels will not match.

in physx wheel config:

maxDroop = 0.35;

maxCompression = 0.20;

Example Suspension animation:

class Wheel_TL2 {

type="translation";

source="damper";

selection="WTL_2";

axis="Basic_Damper_Destruct_Axis"; // Consist of vertices [0,0,0],[0,0,1]

memory="true";

animPeriod=0;

minValue="0";

maxValue="1";

offset0= "-0.35"; // equal to maxDroop in PhysX

offset1= "0.20"; // equal to maxCompression in PhysX

};

That also means that you shouldnt change these values if you can't modify the model.cfg itself (is the case for binarized models)

ahh okay, i was noticing a correlation but i couldnt figure out why i couldnt get the right balance. as always your a great help Fennek.

one question, should the maxDroop but the absolute value (positive integer)?

Share this post


Link to post
Share on other sites
should the maxDroop but the absolute value (positive integer)

yes indeed

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×