|
|
|
@ -301,6 +301,12 @@ bool PM_SlideMove( bool gravity )
|
|
|
|
|
if ( into >= 0.1 )
|
|
|
|
|
continue; // move doesn't interact with the plane
|
|
|
|
|
|
|
|
|
|
std::cout << "Second plane" << planes[i] << "\n";
|
|
|
|
|
if(planes[i].x >= .70)
|
|
|
|
|
{
|
|
|
|
|
pm->ps.velocity = Ogre::Vector3(0,0,0);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
// see how hard we are hitting things
|
|
|
|
|
if ( -into > pml.impactSpeed )
|
|
|
|
|
pml.impactSpeed = -into;
|
|
|
|
@ -322,6 +328,13 @@ bool PM_SlideMove( bool gravity )
|
|
|
|
|
//if ( DotProduct( clipVelocity, planes[j] ) >= 0.1 )
|
|
|
|
|
continue; // move doesn't interact with the plane
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//pm->ps.velocity = Ogre::Vector3(0,0,0);
|
|
|
|
|
//return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// try clipping the move to the plane
|
|
|
|
|
PM_ClipVelocity( clipVelocity, planes[j], clipVelocity, OVERCLIP );
|
|
|
|
|
PM_ClipVelocity( endClipVelocity, planes[j], endClipVelocity, OVERCLIP );
|
|
|
|
|