DI-Guy SDK Documentation  13.1
diguy_module_sim_physx.h File Reference
#include <declspec_diguy.h>

Go to the source code of this file.

Classes

struct  diguyModuleSimPhysXInit
 

Typedefs

typedef struct diguyModuleSimPhysXInit diguyModuleSimPhysXInit
 

Functions

Functions
int diguy_sim_physx_initialize (diguyModuleSimPhysXInit *init)
 This function tells DI-Guy that it should use the PhysX simulation library for doing physics simulations on selected characters. More...
 
int diguy_sim_physx_deinitialize ()
 This function tells DI-Guy to shut down the PhysX simulation library module. More...
 

Typedef Documentation

Function Documentation

int diguy_sim_physx_initialize ( diguyModuleSimPhysXInit init)

This function tells DI-Guy that it should use the PhysX simulation library for doing physics simulations on selected characters.

This function must be called after the main DI-Guy initialize call (e.g., diguy_ogl_initialize()), and before any scenario is created.

The PhysX system software must be installed on any computer that will use this module. The directory 3rdparty/physx under the DI-Guy install directory has system software installed. Be sure to read the README.TXT file!

See the "Physics Module Functions" section in the diguyApp documentation for functions that affect the simulation system.

Returns:

0 on success, -1 on failure

Example:

1 diguy_ogl_initialize(NULL);
2 
3 diguyModuleSimPhysXInit init;
4 init.ground_plane_z = 2.0f;
5 diguy_sim_physx_initialize(&init);
6 
7 diguyScenario* scenario = diguy_create_scenario();
int diguy_sim_physx_deinitialize ( )

This function tells DI-Guy to shut down the PhysX simulation library module.

Returns:

0 on success, -1 on failure