14 #ifndef COLLISIONLINE_H 15 #define COLLISIONLINE_H 28 INLINE
explicit CollisionLine(
const LPoint3 &origin,
const LVector3 &direction);
29 INLINE
explicit CollisionLine(PN_stdfloat ox, PN_stdfloat oy, PN_stdfloat oz,
30 PN_stdfloat dx, PN_stdfloat dy, PN_stdfloat dz);
39 virtual void output(std::ostream &out)
const;
42 virtual void fill_viz_geom();
56 static void init_type() {
57 CollisionRay::init_type();
59 CollisionRay::get_class_type());
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
An infinite ray, with a specific origin and direction.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
The abstract base class for all things that can collide with other things in the world,...
Base class for objects that can be written to and read from Bam files.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Defines a single collision event.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
An infinite line, similar to a CollisionRay, except that it extends in both directions.
static void register_with_read_factory()
Tells the BamReader how to create objects of type CollisionRay.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.