Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
collide
collisionHandlerFluidPusher.h
1
// Filename: collisionHandlerFluidPusher.h
2
// Created by: drose (16Mar02)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef COLLISIONHANDLERFLUIDPUSHER_H
16
#define COLLISIONHANDLERFLUIDPUSHER_H
17
18
#include "pandabase.h"
19
20
#include "collisionSolid.h"
21
#include "collisionHandlerPusher.h"
22
23
////////////////////////////////////////////////////////////////////
24
// Class : CollisionHandlerFluidPusher
25
// Description : A CollisionHandlerPusher that makes use of timing
26
// and spatial information from fluid collisions to improve
27
// collision response
28
////////////////////////////////////////////////////////////////////
29
class
EXPCL_PANDA_COLLIDE
CollisionHandlerFluidPusher
:
public
CollisionHandlerPusher
{
30
PUBLISHED:
31
CollisionHandlerFluidPusher
();
32
33
public
:
34
virtual
void
add_entry
(
CollisionEntry
*entry);
35
36
protected
:
37
virtual
bool
handle_entries();
38
39
public
:
40
static
TypeHandle
get_class_type() {
41
return
_type_handle;
42
}
43
static
void
init_type() {
44
CollisionHandlerPusher::init_type();
45
register_type(_type_handle,
"CollisionHandlerFluidPusher"
,
46
CollisionHandlerPusher::get_class_type());
47
}
48
virtual
TypeHandle
get_type()
const
{
49
return
get_class_type();
50
}
51
virtual
TypeHandle
force_init_type() {init_type();
return
get_class_type();}
52
53
private
:
54
static
TypeHandle
_type_handle;
55
};
56
57
#include "collisionHandlerFluidPusher.I"
58
59
#endif
60
61
62
CollisionHandlerFluidPusher
A CollisionHandlerPusher that makes use of timing and spatial information from fluid collisions to im...
Definition:
collisionHandlerFluidPusher.h:29
CollisionEntry
Defines a single collision event.
Definition:
collisionEntry.h:46
CollisionHandlerPusher
A specialized kind of CollisionHandler that simply pushes back on things that attempt to move into so...
Definition:
collisionHandlerPusher.h:29
CollisionHandlerPhysical::add_entry
virtual void add_entry(CollisionEntry *entry)
Called between a begin_group() .
Definition:
collisionHandlerPhysical.cxx:64
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
Generated on Mon Feb 1 2016 13:44:18 for Panda3D by
1.8.5