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;
52 Actor(
const MWWorld::Ptr& ptr, osg::ref_ptr<const Resource::BulletShape> shape, btCollisionWorld* world);
165 std::unique_ptr<btCollisionShape>
mShape;
bool mWalkingOnWater
Definition: actor.hpp:161
osg::Vec3f mScale
Definition: actor.hpp:174
bool mExternalCollisionMode
Definition: actor.hpp:183
void updatePosition()
Definition: actor.cpp:100
osg::Quat mRotation
Definition: actor.hpp:172
void setWalkingOnWater(bool walkingOnWater)
Sets whether this actor has been walking on the water surface in the last frame.
Definition: actor.cpp:203
bool getOnGround() const
Definition: actor.hpp:130
void setOnSlope(bool slope)
Definition: actor.cpp:193
void updateCollisionMask()
Removes then re-adds the collision object to the dynamics world.
Definition: actor.cpp:83
bool isRotationallyInvariant() const
Definition: actor.cpp:152
MWWorld::ConstPtr getPtr() const
Definition: actor.hpp:40
bool mOnSlope
Definition: actor.hpp:181
virtual ~PtrHolder()
Definition: actor.hpp:28
btCollisionObject * getCollisionObject() const
Definition: actor.hpp:142
osg::Vec3f getHalfExtents() const
Definition: actor.cpp:173
std::unique_ptr< btCollisionShape > mShape
Definition: actor.hpp:165
osg::Vec3f mMeshTranslation
Definition: actor.hpp:170
void enableCollisionMode(bool collision)
Definition: actor.cpp:64
osg::Vec3f mHalfExtents
Definition: actor.hpp:171
int getCollisionMask()
Definition: actor.cpp:89
osg::Vec3f getPreviousPosition() const
Definition: actor.cpp:137
~Actor()
Definition: actor.cpp:58
bool mInternalCollisionMode
Definition: actor.hpp:182
osg::Vec3f getPosition() const
Definition: actor.cpp:132
osg::Vec3f getRenderingHalfExtents() const
Definition: actor.cpp:178
MWWorld::Ptr mPtr
Definition: actor.hpp:46
osg::Vec3f mPreviousPosition
Definition: actor.hpp:177
bool mCanWaterWalk
Definition: actor.hpp:160
std::unique_ptr< btCollisionObject > mCollisionObject
Definition: actor.hpp:168
btConvexShape * getConvexShape() const
Definition: actor.hpp:65
Actor(const MWWorld::Ptr &ptr, osg::ref_ptr< const Resource::BulletShape > shape, btCollisionWorld *world)
Definition: actor.cpp:19
void updateScale()
Definition: actor.cpp:157
osg::Vec3f mRenderingScale
Definition: actor.hpp:175
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
btCollisionWorld * mCollisionWorld
Definition: actor.hpp:185
Actor & operator=(const Actor &)
bool getCollisionMode() const
Definition: actor.hpp:60
void enableCollisionBody(bool collision)
Definition: actor.cpp:69
void addCollisionMask(int collisionMask)
Definition: actor.cpp:78
MWWorld::Ptr getPtr()
Definition: actor.hpp:35
bool getOnSlope() const
Definition: actor.hpp:137
void setCanWaterWalk(bool waterWalk)
Sets whether this actor should be able to collide with the water surface.
Definition: actor.cpp:208
osg::Vec3f mPosition
Definition: actor.hpp:176
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
bool mOnGround
Definition: actor.hpp:180
void updatePtr(const MWWorld::Ptr &updated)
Definition: actor.hpp:30
osg::Vec3f getCollisionObjectPosition() const
Definition: actor.cpp:119
void setInertialForce(const osg::Vec3f &force)
Definition: actor.cpp:183
void updateRotation()
Definition: actor.cpp:142
void updateCollisionObjectPosition()
Definition: actor.cpp:110
bool isWalkingOnWater() const
Definition: actor.cpp:198
btConvexShape * mConvexShape
Definition: actor.hpp:166
void setOnGround(bool grounded)
Definition: actor.cpp:188
const osg::Vec3f & getInertialForce() const
Definition: actor.hpp:123
osg::Vec3f mForce
Definition: actor.hpp:179
bool mRotationallyInvariant
Definition: actor.hpp:163
void setPosition(const osg::Vec3f &position)
Definition: actor.cpp:124