14 #ifndef PHYSXCONTROLLER_H 15 #define PHYSXCONTROLLER_H 37 void set_pos(
const LPoint3f &pos);
38 void set_sharpness(
float sharpness);
39 void set_collision(
bool enable);
40 void set_min_distance(
float min_dist);
41 void set_step_offset(
float offset);
43 LPoint3f get_pos()
const;
44 float get_sharpness()
const;
46 void set_global_speed(
const LVector3f &speed);
47 void set_local_speed(
const LVector3f &speed);
48 void set_omega(
float omega);
49 void set_h(
float heading);
52 void report_scene_changed();
53 void start_jump(
float v0);
56 INLINE
void ls()
const;
57 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
60 void update_controller(
float dt);
64 virtual NxController *ptr()
const = 0;
66 virtual void link(NxController *controllerPtr) = 0;
67 virtual void unlink() = 0;
73 NxReal get_jump_height(
float dt, NxVec3 &gravity);
89 NxHeightFieldAxis _up_axis;
95 static void init_type() {
96 PhysxObject::init_type();
98 PhysxObject::get_class_type());
101 return get_class_type();
105 return get_class_type();
114 #endif // PHYSXCONTROLLER_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.