lost code fix
This commit is contained in:
parent
74a833baf8
commit
5970b23d3c
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
<ShowAllFiles>false</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
|
||||
|
|
|
@ -211,7 +211,6 @@ void GamingUI::OnMouseMoveVelocity ( Input::Struct::SAIPointInt2D coordinate, In
|
|||
//send delta mouse movement
|
||||
{
|
||||
this->camera->PitchDown( (-coordinate.y) * this->sharedData->mouseSensitivity );
|
||||
//this->camera->YawLeft( (-coordinate.x) * this->sharedData->mouseSensitivity );
|
||||
//if( deltaPos.x != 0.0f ) //This made the camera reset to a specific rotation. Why?
|
||||
{
|
||||
this->sharedData->network->Send( Protocol_PlayerLeftTurn((coordinate.x) * this->sharedData->mouseSensitivity, this->camera->GetLook()) );
|
||||
|
|
|
@ -83,9 +83,10 @@ void Player::BeginFrame()
|
|||
// Rotate player accordingly
|
||||
this->rigidBody->AddRotationAroundY(this->rotationUp);
|
||||
this->rigidBody->SetUp( this->rigidBody->GetState().centerPos.GetNormalized() );
|
||||
this->rotationUp = 0.0f;
|
||||
|
||||
// Direction data
|
||||
Oyster::Math::Float4x4 orientation;
|
||||
Float4x4 orientation;
|
||||
orientation = this->rigidBody->GetState().GetOrientation();
|
||||
|
||||
Float3 &forwardDir = orientation.v[2].xyz;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "DynamicArray.h"
|
||||
|
||||
const float MAX_HP = 100.0f;
|
||||
const float BASIC_SPEED = 10.0f;
|
||||
const float BASIC_SPEED = 20.0f;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue