-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0272624
commit 490e165
Showing
31 changed files
with
102 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod editor_plugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub mod camera; | ||
pub mod editor_plugin; | ||
pub mod error_handling; | ||
pub mod game_globals; | ||
pub mod game_settings; | ||
pub mod godot_replacements; | ||
pub mod input; | ||
pub mod interaction; | ||
pub mod procedural_meshes; | ||
pub mod serialization; | ||
pub mod signals; | ||
pub mod state_machine; | ||
pub mod utility_nodes; | ||
pub mod vfx_stack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod spline_mesh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// use godot::{ | ||
// engine::{ArrayMesh, IMeshInstance3D, Mesh, MeshDataTool, MeshInstance3D, Path3D}, | ||
// prelude::*, | ||
// }; | ||
|
||
// #[derive(GodotClass)] | ||
// #[class(init, base=MeshInstance3D)] | ||
// pub struct SplineMesh { | ||
// #[export] | ||
// spline: Option<Gd<Path3D>>, | ||
// #[export] | ||
// target_mesh: Option<Gd<Mesh>>, | ||
// #[base] | ||
// base: Base<MeshInstance3D>, | ||
// } | ||
|
||
// #[godot_api] | ||
// impl IMeshInstance3D for SplineMesh {} | ||
|
||
// #[godot_api] | ||
// impl SplineMesh { | ||
// #[func] | ||
// pub fn generate_mesh(&mut self) { | ||
// self.ensure_array_mesh(); | ||
// let Some(generic_mesh) = self.base.get_mesh() else { | ||
// return; | ||
// }; | ||
// let array_mesh_cast: Result<Gd<ArrayMesh>, _> = generic_mesh.try_cast(); | ||
// let Ok(mut array_mesh) = array_mesh_cast else { | ||
// return; | ||
// }; | ||
// let Some(spline) = self.spline.clone() else { | ||
// return; | ||
// }; | ||
// let Some(spline) = spline.get_curve() else { | ||
// return; | ||
// }; | ||
// let Some(target) = self.target_mesh.clone() else { | ||
// return; | ||
// }; | ||
// array_mesh.clear_surfaces(); | ||
|
||
// let interval = spline.get_bake_interval(); | ||
// let length = spline.get_baked_length(); | ||
// let points = spline.get_baked_points(); | ||
// let tilts = spline.get_baked_tilts(); | ||
// let ups = spline.get_baked_up_vectors(); | ||
// let data = MeshDataTool::new(); | ||
// for (index, value) in points.as_slice().iter().enumerate() { | ||
// let tilt = tilts.as_slice()[index]; | ||
// let up = ups.as_slice()[index]; | ||
// } | ||
// } | ||
|
||
// fn ensure_array_mesh(&mut self) { | ||
// if self.base.get_mesh().is_none() { | ||
// self.base.set_mesh(ArrayMesh::new().upcast()); | ||
// return; | ||
// } | ||
// let arr_cast: Result<Gd<ArrayMesh>, _> = self.base.get_mesh().unwrap().try_cast(); | ||
// let Ok(_) = arr_cast else { | ||
// self.base.set_mesh(ArrayMesh::new().upcast()); | ||
// return; | ||
// }; | ||
// } | ||
// } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/vfx_stack/vfx_stack_resource.rs → src/scene/vfx_stack/vfx_stack_resource.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters