summaryrefslogtreecommitdiffstats
path: root/source/Entity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-10 14:33:01 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-10 14:33:01 +0100
commit576f8589c03abe05fa71ce94ca6b93dee0ebcb07 (patch)
tree53b44ae62b4c2cdbc46a781a4ce7c8ed1e9d8dd4 /source/Entity.cpp
parentcBlockArea: Added empty NBT tags to schematic file saving for better compatibility. (diff)
downloadcuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.tar
cuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.tar.gz
cuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.tar.bz2
cuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.tar.lz
cuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.tar.xz
cuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.tar.zst
cuberite-576f8589c03abe05fa71ce94ca6b93dee0ebcb07.zip
Diffstat (limited to 'source/Entity.cpp')
-rw-r--r--source/Entity.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/Entity.cpp b/source/Entity.cpp
index 43f9e9431..c031c97af 100644
--- a/source/Entity.cpp
+++ b/source/Entity.cpp
@@ -273,12 +273,11 @@ void cEntity::SetRoll( float a_Roll )
//////////////////////////////////////////////////////////////////////////
// Get look vector (this is NOT a rotation!)
-Vector3f cEntity::GetLookVector()
+Vector3f cEntity::GetLookVector(void) const
{
Matrix4f m;
m.Init( Vector3f(), 0, m_Rot.x, -m_Rot.y );
Vector3f Look = m.Transform( Vector3f(0, 0, 1) );
- LOG("Look: %0.1f %0.1f %0.1f", Look.x, Look.y, Look.z );
return Look;
}