15 #ifndef __BULLET_TRANSLATIONAL_LIMIT_MOTOR_H__
16 #define __BULLET_TRANSLATIONAL_LIMIT_MOTOR_H__
18 #include "pandabase.h"
20 #include "bullet_includes.h"
21 #include "bullet_utils.h"
35 INLINE
void set_motor_enabled(
int axis,
bool enable);
36 INLINE
void set_low_limit(
const LVecBase3 &limit);
37 INLINE
void set_high_limit(
const LVecBase3 & limit);
38 INLINE
void set_target_velocity(
const LVecBase3&velocity);
39 INLINE
void set_max_motor_force(
const LVecBase3 &force);
40 INLINE
void set_damping(PN_stdfloat damping);
41 INLINE
void set_softness(PN_stdfloat softness);
42 INLINE
void set_restitution(PN_stdfloat restitution);
43 INLINE
void set_normal_cfm(
const LVecBase3 &cfm);
44 INLINE
void set_stop_erp(
const LVecBase3 &erp);
45 INLINE
void set_stop_cfm(
const LVecBase3 &cfm);
47 INLINE
bool is_limited(
int axis)
const;
48 INLINE
bool get_motor_enabled(
int axis)
const;
49 INLINE
int get_current_limit(
int axis)
const;
50 INLINE
LVector3 get_current_error()
const;
51 INLINE
LPoint3 get_current_diff()
const;
52 INLINE
LVector3 get_accumulated_impulse()
const;
58 btTranslationalLimitMotor &_motor;
61 #include "bulletTranslationalLimitMotor.I"
63 #endif // __BULLET_TRANSLATIONAL_LIMIT_MOTOR_H__
This is the base class for all three-component vectors and points.
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 ...
Rotation Limit structure for generic joints.