pub(crate) fn looking_at_space(
        space: URef<Space>,
        direction: impl Into<Vector3<FreeCoordinate>>,
    ) -> Self {
        let grid = space.borrow().grid();
        let mut spawn = Self::default_for_new_space(grid);
        spawn.position = eye_for_look_at(grid, direction.into()).map(|s| NotNan::new(s).unwrap());
        //spawn.look_at(grid.center());  // TODO
        spawn
    }
// TODO: Saving this in case it turns out useful e.g. for looking at blocks.
Saving this in case it turns out useful e.g. for looking at blocks.
Saving this in case it turns out useful e . g . for looking at blocks .
pub(crate) fn looking_at_space(
        space: URef<Space>,
        direction: impl Into<Vector3<FreeCoordinate>>,
    ) -> Self {
        let grid = space.borrow().grid();
        let mut spawn = Self::default_for_new_space(grid);
        spawn.position = eye_for_look_at(grid, direction.into()).map(|s| NotNan::new(s).unwrap());
        //spawn.look_at(grid.center());  // TODO
        spawn
    }
pub ( crate ) fn looking_at_space ( space : URef < Space > , direction : impl Into < Vector3 < FreeCoordinate > > , ) -> Self { let grid = space . borrow ( ) . grid ( ) ; let mut spawn = Self :: default_for_new_space ( grid ) ; spawn . position = eye_for_look_at ( grid , direction . into ( ) ) . map ( | s | NotNan :: new ( s ) . unwrap ( ) ) ; //spawn.look_at(grid.center());  // TODO spawn }
TODO: Saving this in case it turns out useful e.g.
TODO : Saving this in case it turns out useful e . g .
space
URef<Space>
direction
impl Into<Vector3<FreeCoordinate>>