Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
698 B
Raw Blame
#ifndef OENGINE_BULLET_TRACE_H
#define OENGINE_BULLET_TRACE_H

#include <osg/Vec3f>

class btCollisionObject;
class btCollisionWorld;

namespace MWPhysics
{
    class Actor;

    struct ActorTracer
    {
        osg::Vec3f mEndPos;
        osg::Vec3f mPlaneNormal;
        osg::Vec3f mHitPoint;
        const btCollisionObject* mHitObject;

        float mFraction;

        void doTrace(const btCollisionObject* actor, const osg::Vec3f& start, const osg::Vec3f& end,
            const btCollisionWorld* world, bool attemptShortTrace = false);
        void findGround(
            const Actor* actor, const osg::Vec3f& start, const osg::Vec3f& end, const btCollisionWorld* world);
    };
}

#endif