21 #ifndef CPHYSICAL_OBJECT_H
22 #define CPHYSICAL_OBJECT_H
26 #include "../CD_LIB/CDVolume.h"
30 namespace OpenSkyNet {
38 _colVol->setUserPointer(static_cast<void*>(
this));
53 _colVol->setCenter(pos_);
54 setHasPosChanged(
true);
65 setHasVelChanged(
true);
77 _colVol->setNonColTransform(getPos(), getRot());
79 virtual bool handleCollisions(
Object* collidee_, std::vector<CD::HitInfo>& colliders_,
float& dt_);
85 #endif //CPHYSICAL_OBJECT_H
CD::Volume * getCollisionVolume()
Definition: CPhysicalObject.h:46
#define COL_GROUP_HIT_ALL_HIT_BY_ALL
Definition: CDVolume.h:138
virtual void getPos(Math::Point<> &pos_) const
Definition: CPhysicalObject.h:51
Definition: CPhysicalObject.h:33
Definition: CDVolume.h:54
const Matrix3x3 g_identityMatrix3x3
Definition: MMatrix3x3.cpp:5
virtual Math::Point getPos() const
Definition: CPhysicalObject.h:50
Definition: CDVolume.h:225
PhysicalObject(CD::Volume *colVol_)
Definition: CPhysicalObject.h:37
virtual void setPos(const Math::Point<> &pos_)
Definition: CPhysicalObject.h:52
const Point g_origin
Definition: MPoint.cpp:5
virtual void setNonCollidingData(Object *obj_)
Definition: CPhysicalObject.h:74
unsigned int uint
Definition: UTypes.h:39
#define CORE_DLL
Definition: CCoreDLL.h:57
const CD::Volume * getCollisionVolume() const
Definition: CPhysicalObject.h:45
virtual Math::Point getVel() const
Definition: CPhysicalObject.h:61
virtual void getVel(Math::Point<> &vel_) const
Definition: CPhysicalObject.h:62
virtual const PhysicalObject * getPhysicalObject() const
Definition: CPhysicalObject.h:68
Definition: ICollisionListener.h:34
virtual PhysicalObject * getPhysicalObject()
Definition: CPhysicalObject.h:69
Definition: MMatrix3x3.h:32
float float rot_[3]
Definition: ViewerApp.h:31
float pos_[3]
Definition: ViewerApp.h:31
virtual void setVel(const Math::Point<> &vel_)
Definition: CPhysicalObject.h:63