Jump to content


- - - - -

PhysX charactercontrol


1 reply to this topic

#1 Sieg

    New Member

  • Members
  • Pip
  • 1 posts

Posted 12 July 2008 - 06:23 PM

Does any here have experience using AGEIA PhysX with DirectX? And specifically its character controller?

I am looking for a tutorial on how to use the PhysX character controller with DirectX, to create a standard First Person Shooter control. The samples that come with the documentation of PhysX are for openGL, and are not explained very well.

I have never used PhysX before, can someone help me get started please?


Or maybe someone can answer me this question:

My app DOES compile, but crashes immediately, why?

NxControllerManager* pManager;
NxController* playerController;

initPhysX()
{
        <...>

	pManager = NxCreateControllerManager(NULL);
	NxCapsuleControllerDesc desc;
	desc.height = 1.5f;
	desc.radius = 0.5f;
	playerController = pManager->createController(pScene, desc);
}


When I comment out the last line it doesnt crash anymore. What am I doing wrong?

Thank you

#2 Kenneth Gorking

    Senior Member

  • Members
  • PipPipPipPip
  • 907 posts

Posted 13 July 2008 - 09:32 PM

Sounds like something hasn't been initialized properly. Try and check pManager and pScene to see they actually got created.
"Stupid bug! You go squish now!!" - Homer Simpson





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users