14 #ifndef COLLISIONHANDLERFLOOR_H 15 #define COLLISIONHANDLERFLOOR_H 32 INLINE
void set_offset(PN_stdfloat offset);
33 INLINE PN_stdfloat get_offset()
const;
35 INLINE
void set_reach(PN_stdfloat reach);
36 INLINE PN_stdfloat get_reach()
const;
38 INLINE
void set_max_velocity(PN_stdfloat max_vel);
39 INLINE PN_stdfloat get_max_velocity()
const;
42 MAKE_PROPERTY(offset, get_offset, set_offset);
43 MAKE_PROPERTY(reach, get_reach, set_reach);
44 MAKE_PROPERTY(max_velocity, get_max_velocity, set_max_velocity);
47 PN_stdfloat set_highest_collision(
const NodePath &target_node_path,
const NodePath &from_node_path,
const Entries &entries);
48 virtual bool handle_entries();
49 virtual void apply_linear_force(ColliderDef &def,
const LVector3 &force);
54 PN_stdfloat _max_velocity;
61 static void init_type() {
62 CollisionHandlerPhysical::init_type();
64 CollisionHandlerPhysical::get_class_type());
67 return get_class_type();
69 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.
The abstract base class for a number of CollisionHandlers that have some physical effect on their mov...
A specialized kind of CollisionHandler that sets the Z height of the collider to a fixed linear offse...
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...