You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bevy provides a MinimalPlugins plugin bundle for headless bevy applications. Headless applications can be used to implement a game server for example. When trying to add the default Avian PhysicsPlugins Plugin Bundle Bevy a panics.
Minimal Example:
Here is a minimal example for a simple headless bevy application.
use avian3d::prelude::*;use bevy::{app::ScheduleRunnerPlugin, prelude::*};fnmain(){App::new().add_plugins(MinimalPlugins.set(ScheduleRunnerPlugin::run_once())).add_systems(Update, hello_world_system).add_plugins(PhysicsPlugins::default()).run();}fnhello_world_system(){println!("hello world");}
Which results in the following error.
Resource requested by avian3d::collision::collider::backend::init_collider_constructor_hie
rarchies does not exist: bevy_asset::assets::Assets<bevy_render::mesh::mesh::Mesh>
Encountered a panic in system `hello worldavian3d::collision::collider::backend::init_collider_constructors`!
Encountered a panic in system `avian3d::collision::collider::backend::init_collider_constructor_hierarchies`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
Is this a bug?
Does PhysicsPlugins::default() include plugins that can not be used without bevy_window::WindowPlugin maybe? If yes, would it make sense to also provide a MinimalPlugins bundle for avian physics? What plugins would I need to exclude?
Thanks!
The text was updated successfully, but these errors were encountered:
If you don't need mesh colliders, you can avoid the need for Assets<Mesh> resource and ScenePlugin if you disable the bevy_scene and collider-from-mesh features.
I don't see a way that it could be possible to remove the reliance on TransformPlugin since so much of Avian works with GlobalTransform.
Description:
Bevy provides a
MinimalPlugins
plugin bundle for headless bevy applications. Headless applications can be used to implement a game server for example. When trying to add the default AvianPhysicsPlugins
Plugin Bundle Bevy a panics.Minimal Example:
Here is a minimal example for a simple headless bevy application.
Which results in the following error.
Is this a bug?
Does
PhysicsPlugins::default()
include plugins that can not be used withoutbevy_window::WindowPlugin
maybe? If yes, would it make sense to also provide aMinimalPlugins
bundle for avian physics? What plugins would I need to exclude?Thanks!
The text was updated successfully, but these errors were encountered: