UPDATE!

Simple cct (character controller) made with PhysX (SDK 2.8.4) plugin.
I've modified ackphysx.dll community version plugin, to get more PH_CHAR features.
Tested on several machines, it should work out of the box!
This template works only with CAPSULE hull! I don't recommend using BOX hull!

It currently supports:
Quote
It currently supports:
- collision masks (GROUP_NON_COLLIDABLE, GROUP_COLLIDABLE_NON_PUSHABLE, GROUP_COLLIDABLE_PUSHABLE)
- pXent_updateCharacterExtents for crawling/standing
- pXent_setCharacterSettings for changing skinWidth, stepOffset and slopeLimit for all ccts
- gravity + jumping
- inertia
- sliding on slopes
- 3d camera with collision detection and zooming
- kinematic platform (following the path) + elevator (moving to target position and back)
- added helper functions to check, if props have smashed the cct
- terrain support

Known issues:
Quote
- cct can (rarely) fall through kinematic elevator, if it's moving upwards and cct is falling on it
- problems with normal detection (can be seen in the video), on polygon edges normal.z can't glitch... this causes some weird movement on slopes if sliding is enabled, to void this problem, disable sliding also in screenshot folder you can see that 'Use Tesselation' flag in Map Compiler makes even more polygons/edges thus that will cause a lot of jittering on slope movement (cause on edges normal.z goes beyond the slope limit - can be seen in video)


You can see cct in motion on my youtube channel:
https://youtu.be/mfTzt57JoAw

HOW TO USE ?

There are lots of limitations to this movement template, mainly caused by physX itself (old SDK).
But by learning how the demo scene is made and setup you'll be able to get (more or less) suitable results.
Quote
- Mainly I would advice to keep the same size and don't increase/decrease world scale! Currently 40quants = 1 meter, NPC is 64 quant height.
- To make sure that correct .dll was loaded, there is a function called ackphysxHelloWorld();
- To make slope slidable, set it's FLAG8 in WED

CREDITS:
Quote
- original physX plugin was made by Chris Kahler
- based on ackphysX community plugin by Christian Behrenberg aka (HeelX) https://sourceforge.net/p/a8physx/home/Home/
- prototype.wad by Damocles (can be also found in AUM 100)
- elevator and platform sounds are taken from Freedoom project https://freedoom.github.io/ https://github.com/freedoom/freedoom
- crate model from old Newton plugin demo which was made by thomas oppl in 2007 (unfortunately I don't know who made the model itself)


Download link:
https://github.com/3RUN/Acknex-CCT

Screenshots:
[Linked Image]
[Linked Image]
[Linked Image]

If any bugs will be found, report them. I'll try to fix them in my spare time. Any feedback is (as always) welcome.

Best regards.

Last edited by 3run; 05/31/20 10:24.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung