PhysX Update Release
From C4 Engine Wiki
Release 4
***** Before Updating any Worlds, please make sure you have a backup *****
I have made a change from R3 to R4 on the Rigid Body Controllers, it essentially adds two more local variable dynamic and attributeType. Unfortunately if you have an existing world built with R3, it will require updating.
There are two ways to do this.
- 1. Change the game type from PhysXGame to PhysXGameUpdate in Variables.cfg (The PhysXGameUpdate.dll is included in the C4-132-04-PhysXDemo.rar file).
- With the game type changed, open up the R3 world in the World Editor that needs updating,
- Save the world and close C4.
- Change the game type back to PhysXGame.
- 2. locate the code in PhysXRigidBodyControllers.cpp
- Look for lines 57 and 58
- Comment the code
data >> dynamic; // comment this out initially to save all of your worlds data >> attributeType; // comment this out initially to save all of your worlds
- Change to
//data >> dynamic; // comment this out initially to save all of your worlds //data >> attributeType; // comment this out initially to save all of your worlds
- Recompile and run C4
- Open up the R3 world in the World Editor that needs updating
- Save the world and close C4.
- Uncomment the code
