14 #ifndef PHYSICSCOLLISIONHANDLER_H 15 #define PHYSICSCOLLISIONHANDLER_H 33 INLINE
void set_almost_stationary_speed(PN_stdfloat speed);
34 INLINE PN_stdfloat get_almost_stationary_speed();
36 INLINE
void set_static_friction_coef(PN_stdfloat coef);
37 INLINE PN_stdfloat get_static_friction_coef();
39 INLINE
void set_dynamic_friction_coef(PN_stdfloat coef);
40 INLINE PN_stdfloat get_dynamic_friction_coef();
43 PN_stdfloat _almost_stationary_speed;
44 PN_stdfloat _static_friction_coef;
45 PN_stdfloat _dynamic_friction_coef;
48 ColliderDef &def, LVector3 &vel,
const LVector3& force, PN_stdfloat angle);
49 virtual void apply_net_shove(
50 ColliderDef &def,
const LVector3 &net_shove,
51 const LVector3 &force_normal);
52 virtual void apply_linear_force(ColliderDef &def,
const LVector3 &force);
54 virtual bool validate_target(
const NodePath &target);
60 static void init_type() {
61 CollisionHandlerPusher::init_type();
63 CollisionHandlerPusher::get_class_type());
66 return get_class_type();
68 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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.
A specialized kind of CollisionHandler that simply pushes back on things that attempt to move into so...
A specialized kind of CollisionHandler that simply pushes back on things that attempt to move into so...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...