Skip to content
Snippets Groups Projects
Commit 7c3a61a8 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

fixed warning to please msvc

parent 1656f508
Branches
No related merge requests found
...@@ -98,14 +98,14 @@ int main( int argc, char ** argv ) ...@@ -98,14 +98,14 @@ int main( int argc, char ** argv )
// be used to for instance rotate the box around the global y-axis. // be used to for instance rotate the box around the global y-axis.
BoxID box = createBox( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), Vec3(2.5,2.5,2.5) ); BoxID box = createBox( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), Vec3(2.5,2.5,2.5) );
if (box != NULL) if (box != NULL)
box->rotate( 0.0, math::PI/3.0, 0.0 ); box->rotate( 0.0, real_c(math::PI/3.0), 0.0 );
//! [Create a Box] //! [Create a Box]
//! [Create a Capsule] //! [Create a Capsule]
// Create a capsule and rotate it after successfull creation. // Create a capsule and rotate it after successfull creation.
CapsuleID capsule = createCapsule( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), real_t(1), real_t(1) ); CapsuleID capsule = createCapsule( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), real_t(1), real_t(1) );
if (capsule != NULL) if (capsule != NULL)
capsule->rotate( 0.0, math::PI/3.0, 0.0 ); capsule->rotate( 0.0, real_c(math::PI/3.0), 0.0 );
//! [Create a Capsule] //! [Create a Capsule]
//! [Create a Plane] //! [Create a Plane]
...@@ -118,7 +118,7 @@ int main( int argc, char ** argv ) ...@@ -118,7 +118,7 @@ int main( int argc, char ** argv )
// Create a sphere and rotate it after successfull creation. // Create a sphere and rotate it after successfull creation.
SphereID sphere = createSphere( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), real_t(1) ); SphereID sphere = createSphere( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), real_t(1) );
if (sphere != NULL) if (sphere != NULL)
sphere->rotate( 0.0, math::PI/3.0, 0.0 ); sphere->rotate( 0.0, real_c(math::PI/3.0), 0.0 );
//! [Create a Sphere] //! [Create a Sphere]
//! [Create a Union] //! [Create a Union]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment