World camera position and target
This commit is contained in:
parent
3b1370ad0b
commit
0ecdf3dcc0
|
@ -246,10 +246,13 @@ fn main() {
|
||||||
} => {
|
} => {
|
||||||
trace!("Camera:");
|
trace!("Camera:");
|
||||||
|
|
||||||
|
let world_position = camera.position * size_f64 + center_f64;
|
||||||
|
let world_target = camera.target * size_f64 + center_f64;
|
||||||
|
|
||||||
trace!("\tPosition: ({}, {}, {})",
|
trace!("\tPosition: ({}, {}, {})",
|
||||||
camera.position.x(), camera.position.y(), camera.position.z());
|
world_position.x(), world_position.y(), world_position.z());
|
||||||
trace!("\tTarget: ({}, {}, {})",
|
trace!("\tTarget: ({}, {}, {})",
|
||||||
camera.target.x(), camera.target.y(), camera.target.z());
|
world_target.x(), world_target.y(), world_target.z());
|
||||||
trace!("\tUp: ({}, {}, {})",
|
trace!("\tUp: ({}, {}, {})",
|
||||||
camera.up.x(), camera.up.y(), camera.up.z());
|
camera.up.x(), camera.up.y(), camera.up.z());
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue