Hello everyone , I’m new using the PhysX SDK and I decided to start with version 2.8.1 since it seems that brings complete information on how to use this engine.
I started by Lesson101 and am following the trainningProgram / documents . I set my " Ide " with the necessary patch and added two files to my project the " Lesson101.h " and an empty file " Lesson101.cpp "
The problem is this is not why it happens :
When I start to fill in code in the tutorial shows that by adding this code to cpp file and compile the program :
include " Lesson101.h "
include " UpdateTime.h "
/ / Physics SDK globals
NxPhysicsSDK * gPhysicsSDK = NULL ;
NxScene * gScene = NULL ;
NxVec3 gDefaultGravity (0, -9.8,0 ) ;
/ / Create the physics SDK
gPhysicsSDK = NxCreatePhysicsSDK ( NX_PHYSICS_SDK_VERSION ) ;
if (! gPhysicsSDK ) return;
/ / Create the scene NxSceneDesc sceneDesc ; sceneDesc.gravity = gDefaultGravity ; gScene = gPhysicsSDK -> createScene ( sceneDesc ) ;
void main ( int argc, char ** argv )
These are the compilation errors that I get: (See post below)
I tried several things, but not why gPhysicsSDK variables that are declared globally, not detected within the initNx function () and the variable “sceneDesc” created within InitNx () also gives compilation errors to do sceneDesc.gravity = gDefaultGravity;
Besides errors “MessageBoxW” also not why it happens.
Someone could help me?? I hope your answer, greetings and thanks.