1 #ifndef OPENMW_MWPHYSICS_ACTOR_H
2 #define OPENMW_MWPHYSICS_ACTOR_H
6 #include "../mwworld/ptr.hpp"
10 #include <osg/ref_ptr>
12 class btCollisionWorld;
13 class btCollisionShape;
14 class btCollisionObject;
51 Actor(
const MWWorld::Ptr& ptr, osg::ref_ptr<const Resource::BulletShape> shape, btCollisionWorld* world);
bool mWalkingOnWater
Definition: actor.hpp:146
osg::Vec3f mScale
Definition: actor.hpp:156
bool mExternalCollisionMode
Definition: actor.hpp:164
void updatePosition()
Definition: actor.cpp:95
osg::Quat mRotation
Definition: actor.hpp:154
void setWalkingOnWater(bool walkingOnWater)
Sets whether this actor has been walking on the water surface in the last frame.
Definition: actor.cpp:188
bool getOnGround() const
Definition: actor.hpp:122
std::auto_ptr< btCollisionObject > mCollisionObject
Definition: actor.hpp:150
void updateCollisionMask()
Removes then re-adds the collision object to the dynamics world.
Definition: actor.cpp:78
MWWorld::ConstPtr getPtr() const
Definition: actor.hpp:39
virtual ~PtrHolder()
Definition: actor.hpp:27
btCollisionObject * getCollisionObject() const
Definition: actor.hpp:127
osg::Vec3f getHalfExtents() const
Definition: actor.cpp:163
osg::Vec3f mMeshTranslation
Definition: actor.hpp:152
void enableCollisionMode(bool collision)
Definition: actor.cpp:59
osg::Vec3f mHalfExtents
Definition: actor.hpp:153
int getCollisionMask()
Definition: actor.cpp:84
osg::Vec3f getPreviousPosition() const
Definition: actor.cpp:132
~Actor()
Definition: actor.cpp:53
bool mInternalCollisionMode
Definition: actor.hpp:163
osg::Vec3f getPosition() const
Definition: actor.cpp:127
osg::Vec3f getRenderingHalfExtents() const
Definition: actor.cpp:168
MWWorld::Ptr mPtr
Definition: actor.hpp:45
osg::Vec3f mPreviousPosition
Definition: actor.hpp:159
bool mCanWaterWalk
Definition: actor.hpp:145
Actor(const MWWorld::Ptr &ptr, osg::ref_ptr< const Resource::BulletShape > shape, btCollisionWorld *world)
Definition: actor.cpp:19
void updateScale()
Definition: actor.cpp:147
osg::Vec3f mRenderingScale
Definition: actor.hpp:157
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
std::auto_ptr< btCollisionShape > mShape
Definition: actor.hpp:148
btCollisionWorld * mCollisionWorld
Definition: actor.hpp:166
Actor & operator=(const Actor &)
bool getCollisionMode() const
Definition: actor.hpp:59
void enableCollisionBody(bool collision)
Definition: actor.cpp:64
void addCollisionMask(int collisionMask)
Definition: actor.cpp:73
MWWorld::Ptr getPtr()
Definition: actor.hpp:34
void setCanWaterWalk(bool waterWalk)
Sets whether this actor should be able to collide with the water surface.
Definition: actor.cpp:193
osg::Vec3f mPosition
Definition: actor.hpp:158
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
bool mOnGround
Definition: actor.hpp:162
void updatePtr(const MWWorld::Ptr &updated)
Definition: actor.hpp:29
osg::Vec3f getCollisionObjectPosition() const
Definition: actor.cpp:114
void setInertialForce(const osg::Vec3f &force)
Definition: actor.cpp:173
void updateRotation()
Definition: actor.cpp:137
void updateCollisionObjectPosition()
Definition: actor.cpp:105
bool isWalkingOnWater() const
Definition: actor.cpp:183
void setOnGround(bool grounded)
Definition: actor.cpp:178
const osg::Vec3f & getInertialForce() const
Definition: actor.hpp:115
osg::Vec3f mForce
Definition: actor.hpp:161
void setPosition(const osg::Vec3f &position)
Definition: actor.cpp:119