gwnavruntime/collision/icollisioninterface.h Source File

icollisioninterface.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 #ifndef Navigation_ICollisionInterface_H
9 #define Navigation_ICollisionInterface_H
10 
15 
16 namespace Kaim
17 {
18  class Vec3f;
19  class CollisionData;
20 }
21 
22 namespace Kaim
23 {
24 
26 class ICollisionInterface : public RefCountBaseV<ICollisionInterface, MemStat_WorldFwk>
27 {
28 public:
29  virtual ~ICollisionInterface() {}
30 
31  // The data within collisionData will be added to the world.
32  virtual KyResult AddCollisionData(Ptr<CollisionData> collisionData) = 0;
33 
34  // The data within collisionData will be removed from the world.
35  virtual KyResult RemoveCollisionData(Ptr<CollisionData> collisionData) = 0;
36 
37  // Perform any processing that may be necessary.
38  virtual KyResult Update() = 0;
39 
40  // Perform RayCast from a to b, return CollisionQueryDidNotHit if no hit.
41  virtual CollisionRayCastResult RayCast(const Vec3f& a, const Vec3f& b) = 0;
42 };
43 
44 } // Kaim
45 
46 #endif // Navigation_ICollisionInterface_H
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
An abstract interface for an object that can perform collision queries.
Definition: icollisioninterface.h:26
Definition: gamekitcrowddispersion.h:20
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23