25 _forward_speed = speed;
37 return _forward_speed;
49 _reverse_speed = speed;
61 return _reverse_speed;
73 _rotate_speed = speed;
100 _vertical_dead_zone = speed;
115 return _vertical_dead_zone;
130 _horizontal_dead_zone = speed;
145 return _horizontal_dead_zone;
157 _vertical_ramp_up_time = ramp_up_time;
170 return _vertical_ramp_up_time;
182 _vertical_ramp_down_time = ramp_down_time;
194 return _vertical_ramp_down_time;
206 _horizontal_ramp_up_time = ramp_up_time;
218 return _horizontal_ramp_up_time;
230 _horizontal_ramp_down_time = ramp_down_time;
242 return _horizontal_ramp_down_time;
275 INLINE PN_stdfloat DriveInterface::
280 INLINE PN_stdfloat DriveInterface::
285 INLINE PN_stdfloat DriveInterface::
302 set_pos(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
306 INLINE
void DriveInterface::
307 set_x(PN_stdfloat x) {
311 INLINE
void DriveInterface::
312 set_y(PN_stdfloat y) {
316 INLINE
void DriveInterface::
317 set_z(PN_stdfloat z) {
332 INLINE PN_stdfloat DriveInterface::
337 INLINE PN_stdfloat DriveInterface::
342 INLINE PN_stdfloat DriveInterface::
355 set_hpr(hpr[0], hpr[1], hpr[2]);
359 set_hpr(PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
365 INLINE
void DriveInterface::
366 set_h(PN_stdfloat h) {
367 _hpr[0] = _hpr_quantize * floor(h / _hpr_quantize + 0.5f);
370 INLINE
void DriveInterface::
371 set_p(PN_stdfloat p) {
372 _hpr[1] = _hpr_quantize * floor(p / _hpr_quantize + 0.5f);
375 INLINE
void DriveInterface::
376 set_r(PN_stdfloat r) {
377 _hpr[2] = _hpr_quantize * floor(r / _hpr_quantize + 0.5f);
394 _ignore_mouse = ignore_mouse;
405 return _ignore_mouse;
417 _force_mouse = force_mouse;
444 _stop_this_frame = stop_this_frame;
455 return _stop_this_frame;
void set_horizontal_dead_zone(PN_stdfloat zone)
Sets the size of the vertical bar in the center of the screen that represents the "dead zone" of hori...
This is the base class for all three-component vectors and points.
PN_stdfloat get_vertical_dead_zone() const
Returns the size of the horizontal bar in the center of the screen that represents the "dead zone" of...
bool get_stop_this_frame() const
Returns the current setting of the stop_this_frame flag.
PN_stdfloat get_reverse_speed() const
Returns the speed of full reverse motion, when the mouse is at the very bottom of the window...
PN_stdfloat get_rot_speed() const
Returns the rot_speed of the previous update in units/sec.
PN_stdfloat get_horizontal_dead_zone() const
Returns the size of the vertical bar in the center of the screen that represents the "dead zone" of h...
PN_stdfloat get_rotate_speed() const
Returns the maximum rate at which the user can rotate left or right, when the mouse is at the very ed...
void set_pos(const LVecBase3 &vec)
Directly sets the driver's position.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
void set_ignore_mouse(bool ignore_mouse)
Changes the state of the ignore_mouse flag.
void set_rotate_speed(PN_stdfloat speed)
Sets the maximum rate at which the user can rotate left or right, when the mouse is at the very edge ...
void set_vertical_dead_zone(PN_stdfloat zone)
Sets the size of the horizontal bar in the center of the screen that represents the "dead zone" of ve...
const LVecBase3 & get_hpr() const
**** Rotation ****
PN_stdfloat get_horizontal_ramp_down_time() const
Returns the amount of time, in seconds, it takes between the time a left or right arrow key is releas...
void set_horizontal_ramp_down_time(PN_stdfloat ramp_down_time)
Sets the amount of time, in seconds, it takes between the time a left or right arrow key is released ...
void set_reverse_speed(PN_stdfloat speed)
Sets the speed of full reverse motion, when the mouse is at the very bottom of the window...
void set_hpr(const LVecBase3 &hpr)
Directly sets the driver's orientation.
void set_horizontal_ramp_up_time(PN_stdfloat ramp_up_time)
Sets the amount of time, in seconds, it takes between the time a left or right arrow key is pressed a...
bool get_ignore_mouse() const
Returns the current setting of the ignore_mouse flag.
PN_stdfloat get_vertical_ramp_up_time() const
Returns the amount of time, in seconds, it takes between the time an up or down arrow key is pressed ...
PN_stdfloat get_forward_speed() const
Returns the speed of full forward motion, when the mouse is at the very top of the window...
void set_stop_this_frame(bool stop_this_frame)
If stop_this_frame is true, the next time the frame is computed no motion will be allowed...
PN_stdfloat get_vertical_ramp_down_time() const
Returns the amount of time, in seconds, it takes between the time an up or down arrow key is released...
void set_forward_speed(PN_stdfloat speed)
Sets the speed of full forward motion, when the mouse is at the very top of the window.
void set_force_mouse(bool force_mouse)
Changes the state of the force_mouse flag.
bool get_force_mouse() const
Returns the current setting of the force_mouse flag.
void set_vertical_ramp_down_time(PN_stdfloat ramp_down_time)
Sets the amount of time, in seconds, it takes between the time an up or down arrow key is released an...
PN_stdfloat get_horizontal_ramp_up_time() const
Returns the amount of time, in seconds, it takes between the time a left or right arrow key is presse...
PN_stdfloat get_speed() const
Returns the speed of the previous update in units/sec.
const LPoint3 & get_pos() const
**** Translation ****
void set_vertical_ramp_up_time(PN_stdfloat ramp_up_time)
Sets the amount of time, in seconds, it takes between the time an up or down arrow key is pressed and...