Skip to content

Commit

Permalink
Minor tweaks in basic.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Jun 9, 2018
1 parent d5a05b2 commit ba85b07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sandbox/samples/cpp/basic/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ asf::auto_release_ptr<asr::Project> build_project()
assembly_instance
->transform_sequence()
.set_transform(
0.0,
0.0f,
asf::Transformd::identity());
scene->assembly_instances().insert(assembly_instance);

Expand Down Expand Up @@ -252,7 +252,7 @@ asf::auto_release_ptr<asr::Project> build_project()
// Place and orient the camera. By default cameras are located in (0.0, 0.0, 0.0)
// and are looking toward Z- (0.0, 0.0, -1.0).
camera->transform_sequence().set_transform(
0.0,
0.0f,
asf::Transformd::from_local_to_parent(
asf::Matrix4d::make_rotation(asf::Vector3d(1.0, 0.0, 0.0), asf::deg_to_rad(-20.0)) *
asf::Matrix4d::make_translation(asf::Vector3d(0.0, 0.8, 11.0))));
Expand Down

0 comments on commit ba85b07

Please sign in to comment.