mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 04:26:42 +00:00 
			
		
		
		
	This will allow to create a specialised shape instead, such as a capsule, which tends to work better for character controllers.
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			679 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			679 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OENGINE_BULLET_TRACE_H
 | 
						|
#define OENGINE_BULLET_TRACE_H
 | 
						|
 | 
						|
#include <OgreVector3.h>
 | 
						|
 | 
						|
 | 
						|
class btCollisionObject;
 | 
						|
 | 
						|
 | 
						|
namespace OEngine
 | 
						|
{
 | 
						|
namespace Physic
 | 
						|
{
 | 
						|
    class PhysicEngine;
 | 
						|
    class PhysicActor;
 | 
						|
 | 
						|
    struct ActorTracer
 | 
						|
    {
 | 
						|
        Ogre::Vector3 mEndPos;
 | 
						|
        Ogre::Vector3 mPlaneNormal;
 | 
						|
 | 
						|
        float mFraction;
 | 
						|
 | 
						|
        void doTrace(btCollisionObject *actor, const Ogre::Vector3 &start, const Ogre::Vector3 &end,
 | 
						|
                     const PhysicEngine *enginePass);
 | 
						|
        void findGround(const OEngine::Physic::PhysicActor* actor, const Ogre::Vector3 &start, const Ogre::Vector3 &end,
 | 
						|
                        const PhysicEngine *enginePass);
 | 
						|
    };
 | 
						|
}
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |