kitgit

tirbofish/dropbear · commit

bba1cede278263b7ee65ad0db9327e363af6bdc1

wip: final change before going to sleep and dealing with this shit tomorrow.

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-02-15 14:09

view full diff

diff --git a/crates/eucalyptus-core/Cargo.toml b/crates/eucalyptus-core/Cargo.toml
index c16be97..611bfb8 100644
--- a/crates/eucalyptus-core/Cargo.toml
+++ b/crates/eucalyptus-core/Cargo.toml
@@ -7,7 +7,7 @@ repository.workspace = true
 readme = "README.md"
 
 [lib]
-crate-type = ["rlib", "dylib"]
+crate-type = ["rlib", "cdylib"]
 
 [dependencies]
 dropbear-traits = { path = "../dropbear-traits" }
diff --git a/crates/eucalyptus-core/src/physics/rigidbody.rs b/crates/eucalyptus-core/src/physics/rigidbody.rs
index 6744ae2..fbc5e3e 100644
--- a/crates/eucalyptus-core/src/physics/rigidbody.rs
+++ b/crates/eucalyptus-core/src/physics/rigidbody.rs
@@ -108,14 +108,6 @@ impl ToJObject for AxisLock {
 	}
 }
 
-/// A serializable physics rigid-body component.
-///
-/// Notes:
-/// - This component should NOT store Rapier handles (`RigidBodyHandle`, `ColliderHandle`, ...).
-///   Those are runtime-only and belong in a physics-world resource/system.
-/// - The body's initial pose should typically come from your `EntityTransform`/`Transform`.
-/// - Colliders/material (shape, friction, restitution, sensor, etc.) should usually be a separate
-///   component (e.g. `Collider`).
 #[derive(Debug, Serialize, Deserialize, Clone)]
 pub struct RigidBody {
 	/// The entity this component is attached to.
@@ -604,7 +596,7 @@ pub mod shared {
     kotlin(class = "com.dropbear.physics.RigidBodyNative", func = "rigidBodyExistsForEntity"),
 	c
 )]
-fn rigid_body_exists_for_entity(
+fn exists_for_entity(
     #[dropbear_macro::define(WorldPtr)]
     world: &hecs::World,
     #[dropbear_macro::define(PhysicsStatePtr)]
diff --git a/crates/eucalyptus-core/src/scene/scripting.rs b/crates/eucalyptus-core/src/scene/scripting.rs
index f8ecec5..bb3a822 100644
--- a/crates/eucalyptus-core/src/scene/scripting.rs
+++ b/crates/eucalyptus-core/src/scene/scripting.rs
@@ -1,8 +1,6 @@
-use crate::ptr::{SceneLoaderPtr, SceneLoaderUnwrapped};
-use crate::scripting::jni::utils::ToJObject;
+use crate::ptr::{CommandBufferPtr, CommandBufferUnwrapped, SceneLoaderPtr, SceneLoaderUnwrapped};
 use crate::scripting::result::DropbearNativeResult;

Large diffs are not rendered by default. Showing the first 50 of 738 lines. Show full diff