HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SIM_ColliderNone.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
*/
7
8
#ifndef __SIM_ColliderNone_h__
9
#define __SIM_ColliderNone_h__
10
11
#include "
SIM_API.h
"
12
#include "
SIM_Collider.h
"
13
14
/// This class implements a collider that doesn't actually detect collisions.
15
/// Use this collider as a place holder when a collider is required but
16
/// no actual collision detection is needed.
17
class
SIM_API
SIM_ColliderNone
:
public
SIM_Collider
18
{
19
protected
:
20
/// This SIM_ColliderNone constructor.
21
explicit
SIM_ColliderNone
(
const
SIM_DataFactory
*factory);
22
/// This SIM_ColliderNone destructor.
23
~
SIM_ColliderNone
()
override
;
24
25
/// Required override of the collision detection function.
26
/// This implementation does nothing.
27
bool
collideObjectsSubclass
(
SIM_Engine
&engine,
28
SIM_Object
&
object
,
29
SIM_Object
&affector,
30
const
SIM_Time
&starttime,
31
const
SIM_Time
&endtime,
32
SIM_ImpactApplyType
impactapplytype,
33
int
impactflags)
const override
;
34
/// There is no point in interpolating the affector, since we
35
/// never even look at it. So return false here.
36
bool
getAffectorInterpolatedToEndTimeSubclass
()
const override
;
37
38
private
:
39
static
const
SIM_DopDescription
*getColliderNoneDopDescription();
40
41
DECLARE_STANDARD_GETCASTTOTYPE
();
42
DECLARE_DATAFACTORY
(
SIM_ColliderNone
,
43
SIM_Collider
,
44
"No Collider"
,
45
getColliderNoneDopDescription());
46
};
47
48
#endif
49
SIM_Engine
Definition:
SIM_Engine.h:65
DECLARE_STANDARD_GETCASTTOTYPE
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition:
SIM_DataUtils.h:50
SIM_Time
Definition:
SIM_Time.h:19
DECLARE_DATAFACTORY
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition:
SIM_DataUtils.h:63
SIM_API.h
SIM_ColliderNone
Definition:
SIM_ColliderNone.h:17
SIM_Collider
Definition:
SIM_Collider.h:34
SIM_Collider::SIM_ImpactApplyType
SIM_ImpactApplyType
Defines the possible affector types when doing collision detection.
Definition:
SIM_Collider.h:56
SIM_DopDescription
Definition:
SIM_DopDescription.h:23
SIM_DataFactory
Definition:
SIM_DataFactory.h:33
SIM_Collider::collideObjectsSubclass
virtual bool collideObjectsSubclass(SIM_Engine &engine, SIM_Object &object, SIM_Object &affector, const SIM_Time &starttime, const SIM_Time &endtime, SIM_ImpactApplyType impactapplytype, int impactflags) const
SIM_Collider.h
SIM_Collider::getAffectorInterpolatedToEndTimeSubclass
virtual bool getAffectorInterpolatedToEndTimeSubclass() const
SIM_Object
Definition:
SIM_Object.h:33
SIM_API
#define SIM_API
Definition:
SIM_API.h:12
SIM
SIM_ColliderNone.h
Generated on Sun Nov 17 2024 03:03:19 for HDK by
1.8.6