15 #ifndef PHYSXCONTROLLER_H 16 #define PHYSXCONTROLLER_H 18 #include "pandabase.h" 19 #include "pointerTo.h" 22 #include "physxObject.h" 23 #include "physxEnums.h" 24 #include "physx_includes.h" 40 void set_sharpness(
float sharpness);
41 void set_collision(
bool enable);
42 void set_min_distance(
float min_dist);
43 void set_step_offset(
float offset);
46 float get_sharpness()
const;
48 void set_global_speed(
const LVector3f &speed);
49 void set_local_speed(
const LVector3f &speed);
50 void set_omega(
float omega);
51 void set_h(
float heading);
54 void report_scene_changed();
55 void start_jump(
float v0);
58 INLINE
void ls()
const;
59 INLINE
void ls(ostream &out,
int indent_level=0)
const;
62 void update_controller(
float dt);
66 virtual NxController *ptr()
const = 0;
68 virtual void link(NxController *controllerPtr) = 0;
69 virtual void unlink() = 0;
75 NxReal get_jump_height(
float dt, NxVec3 &gravity);
91 NxHeightFieldAxis _up_axis;
98 static void init_type() {
99 PhysxObject::init_type();
100 register_type(_type_handle,
"PhysxController",
101 PhysxObject::get_class_type());
104 return get_class_type();
108 return get_class_type();
115 #include "physxController.I" 117 #endif // PHYSXCONTROLLER_H This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Abstract base class for character controllers.
This class exists just to provide scoping for the enums shared by PhysX classes.
Actors are the main simulation objects.
TypeHandle is the identifier used to differentiate C++ class types.