|
|
@@ -54,10 +54,8 @@
|
|
|
#include "physxSphericalJoint.h"
|
|
|
#include "physxTriangleMesh.h"
|
|
|
#include "physxTriangleMeshShape.h"
|
|
|
-//#include "physxVehicle.h"
|
|
|
-//#include "physxVehicleGears.h"
|
|
|
-//#include "physxVehicleMotor.h"
|
|
|
-//#include "physxWheel.h"
|
|
|
+#include "physxVehicle.h"
|
|
|
+#include "physxWheel.h"
|
|
|
#include "physxWheelShape.h"
|
|
|
|
|
|
ConfigureDef(config_physx);
|
|
|
@@ -75,13 +73,13 @@ PRC_DESC("Specified wether the manager should try to connect to the NVIDIA "
|
|
|
|
|
|
ConfigVariableString physx_vrd_host
|
|
|
("physx-vrd-host", "localhost",
|
|
|
-PRC_DESC("Specified the host where the NVIDIA PhysX visual debugger is running"
|
|
|
+PRC_DESC("Specified the host where the NVIDIA PhysX visual debugger is running "
|
|
|
"on. Only used if the config-varibale 'physx-want-visual-debugger' "
|
|
|
"is set to 'true'."));
|
|
|
|
|
|
ConfigVariableInt physx_vrd_port
|
|
|
("physx-visual-debugger-port", 5425,
|
|
|
-PRC_DESC("Specified the port where the NVIDIA PhysX visual debugger is running"
|
|
|
+PRC_DESC("Specified the port where the NVIDIA PhysX visual debugger is running "
|
|
|
"on. Only used if the config-varibale 'physx-want-visual-debugger' "
|
|
|
"is set to 'true'."));
|
|
|
|
|
|
@@ -89,6 +87,13 @@ ConfigVariableEnum<PhysxEnums::PhysxUpAxis> physx_up_axis
|
|
|
("physx-up-axis", PhysxEnums::Z_up,
|
|
|
PRC_DESC("Set the up direction for controllers and heightfields."));
|
|
|
|
|
|
+ConfigVariableInt physx_internal_threads
|
|
|
+("physx-internal-threads", 0,
|
|
|
+PRC_DESC("Specified the number of internal threads to be created by the "
|
|
|
+ "PhysX engine. The threads will be moved to different cores, if "
|
|
|
+ "possible. Default value is '0'. PhysX then runs in an external "
|
|
|
+ "thread, but no additional internal threads will be created."));
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: init_libphysx
|
|
|
// Description: Initializes the library. This must be called at
|
|
|
@@ -144,10 +149,8 @@ init_libphysx() {
|
|
|
PhysxSphericalJoint::init_type();
|
|
|
PhysxTriangleMesh::init_type();
|
|
|
PhysxTriangleMeshShape::init_type();
|
|
|
- //PhysxVehicle::init_type();
|
|
|
- //PhysxVehicleGears::init_type();
|
|
|
- //PhysxVehicleMotor::init_type();
|
|
|
- //PhysxWheel::init_type();
|
|
|
+ PhysxVehicle::init_type();
|
|
|
+ PhysxWheel::init_type();
|
|
|
PhysxWheelShape::init_type();
|
|
|
|
|
|
PandaSystem *ps = PandaSystem::get_global_ptr();
|