14#ifndef COLLISIONHANDLERFLOOR_H
15#define COLLISIONHANDLERFLOOR_H
27class EXPCL_PANDA_COLLIDE CollisionHandlerFloor :
public CollisionHandlerPhysical {
29 CollisionHandlerFloor();
30 virtual ~CollisionHandlerFloor();
50 PN_stdfloat set_highest_collision(
const NodePath &target_node_path,
const NodePath &from_node_path,
const Entries &entries);
51 virtual bool handle_entries();
52 virtual void apply_linear_force(ColliderDef &def,
const LVector3 &force);
57 PN_stdfloat _max_velocity;
64 static void init_type() {
65 CollisionHandlerPhysical::init_type();
67 CollisionHandlerPhysical::get_class_type());
69 virtual TypeHandle get_type()
const {
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
75 static TypeHandle _type_handle;
void read_datagram(DatagramIterator &source)
Restores the object state from the given datagram, previously obtained using __getstate__.
void write_datagram(Datagram &destination) const
Serializes this object, to implement pickle support.
get_max_velocity
Retrieves the maximum speed at which the object will be allowed to descend towards a floor below it,...
get_offset
Returns the linear offset to add to (or subtract from) the highest detected collision point to determ...
get_reach
Returns the reach to add to (or subtract from) the highest collision point.
set_offset
Sets the linear offset to add to (or subtract from) the highest detected collision point to determine...
set_max_velocity
Sets the maximum speed at which the object will be allowed to descend towards a floor below it,...
set_reach
Sets the reach to add to (or subtract from) the highest collision point.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...