14#ifndef COLLISIONHANDLERPUSHER_H
15#define COLLISIONHANDLERPUSHER_H
26class EXPCL_PANDA_COLLIDE CollisionHandlerPusher :
public CollisionHandlerPhysical {
28 CollisionHandlerPusher();
29 virtual ~CollisionHandlerPusher();
31 INLINE
void set_horizontal(
bool flag);
32 INLINE
bool get_horizontal()
const;
35 MAKE_PROPERTY(horizontal, get_horizontal, set_horizontal);
41 virtual bool handle_entries();
42 virtual void apply_net_shove(
43 ColliderDef &def,
const LVector3 &net_shove,
44 const LVector3 &force_normal);
45 virtual void apply_linear_force(ColliderDef &def,
const LVector3 &force);
54 static void init_type() {
55 CollisionHandlerPhysical::init_type();
57 CollisionHandlerPhysical::get_class_type());
60 return get_class_type();
62 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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.
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 ...
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(),...