git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@125 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
a47781d320
commit
858fe20ac8
|
@ -84,7 +84,7 @@ void Cube::draw() const {
|
||||||
glTranslatef(x, y, z);
|
glTranslatef(x, y, z);
|
||||||
|
|
||||||
// Rotation of the cube according to its orientation
|
// Rotation of the cube according to its orientation
|
||||||
glRotatef(orientationAngle/pi*180.0, orientationAxis.getX(), orientationAxis.getY(), orientationAxis.getZ());
|
glRotatef(orientationAngle/PI*180.0, orientationAxis.getX(), orientationAxis.getY(), orientationAxis.getZ());
|
||||||
|
|
||||||
// Draw the cube
|
// Draw the cube
|
||||||
glutSolidCube(size);
|
glutSolidCube(size);
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
#include "OutSideCamera.h"
|
#include "OutSideCamera.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
// Constants
|
|
||||||
const double PI = 3.141592;
|
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
OutSideCamera::OutSideCamera() {
|
OutSideCamera::OutSideCamera() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user