Its compile

This commit is contained in:
rewin
2024-03-15 22:39:16 +03:00
parent 96e15921ae
commit d9175ca8d8
27 changed files with 40 additions and 205 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ fn draw_camera_keyframes(
let t = seek_time.inv_lerp(timestamp_a.0, timestamp_b.0);
let (_, rot_a, pos_a) = xform_a.to_scale_rotation_translation();
let (_, rot_b, pos_b) = xform_b.to_scale_rotation_translation();
let pos = t.lerp(pos_a, pos_b);
let pos = pos_a.lerp(pos_b, t);
let rot = Quat::slerp(rot_a, rot_b, t);
gizmos.sphere(pos, rot, 0.25, Color::WHITE);
+22 -4
View File
@@ -1,11 +1,29 @@
use std::ops::{Deref, DerefMut};
use bevy::{
app::{App, Plugin, PostUpdate, Update},
asset::{Asset, AssetApp, AssetEvent, Assets, Handle},
core::Name,
ecs::{
query::{QueryData, QueryFilter, WorldQuery},
system::Command,
component::Component,
entity::Entity,
event::{Event, EventReader, EventWriter},
query::{QueryData, QueryFilter, With, Without, WorldQuery},
schedule::{apply_deferred, IntoSystemConfigs},
system::{Command, Commands, Query, Res, Resource},
world::World,
},
hierarchy::{BuildWorldChildren, Children},
math::{EulerRot, Quat, Vec3},
reflect::{Reflect, TypePath},
render::color::Color,
time::{Time, Timer, TimerMode},
transform::{
components::{GlobalTransform, Transform},
TransformSystem,
},
prelude::*,
transform::TransformSystem,
};
use space_editor::space_prefab::ext::{in_state, resource_exists, Deref, DerefMut, SpatialBundle};
use studio_bvh::{frames::Frame, ChannelType};
mod error;
+1
View File
@@ -69,6 +69,7 @@ impl Plugin for DebugPlugin {
.disable::<BottomMenuPlugin>()
.disable::<GizmoToolPlugin>()
.disable::<EditorGizmoConfigPlugin>()
.disable::<MeshlessVisualizerPlugin>()
.disable::<space_editor::prelude::SelectedPlugin>(),
);
+4 -3
View File
@@ -1,4 +1,5 @@
use bevy::prelude::*;
use space_editor::space_prefab::ext::{Deref, DerefMut};
use crate::math::{NearlyEq, NearlyZero};
@@ -56,7 +57,7 @@ where
Easing::SineOut => self.t.curve_sin_out(),
};
t.lerp(self.initial, self.target)
Lerp::lerp(t, self.initial, self.target)
}
}
}
@@ -68,8 +69,8 @@ where
{
fn default() -> Self {
Self {
initial: default(),
target: default(),
initial: T::default(),
target: T::default(),
t: 0.,
easing: Easing::Linear,
}
+8 -6
View File
@@ -55,13 +55,15 @@ impl Plugin for ScreenShotPlugin {
core_3d::graph::Core3d,
ScreenCaptureNode,
)
.add_render_graph_edges(
.add_render_graph_edge(
core_3d::graph::Core3d,
&[
core_3d::graph::Node3d::Tonemapping,
ScreenCaptureNode,
core_3d::graph::Node3d::EndMainPassPostProcessing,
],
core_3d::graph::Node3d::Tonemapping,
ScreenCaptureNode,
)
.add_render_graph_edge(
core_3d::graph::Core3d,
ScreenCaptureNode,
core_3d::graph::Node3d::EndMainPassPostProcessing,
);
}
}