bevy Questions

3

Solved

While trying out Bevy, I had the need for dragging and dropping sprites. Unfortunately, this does not seem to come ready made or I did not find it in the documentation. What would be the most idiom...
Snafu asked 21/12, 2020 at 16:5

2

Solved

Currently im using the Position of two objects (comets and the ship) to detect if they collide. fn collision_detection( comets: Query<&Transform, With<Comet>>, mut ships: Query&lt...
Araxes asked 10/3, 2021 at 15:31

2

Solved

Is it possible to get a list of components by having Entity in bevy rust? For example for debugging purposes. use bevy::prelude::*; fn main() { App::build() .add_plugins(DefaultPlugins) .add_sta...
Humphries asked 9/5, 2021 at 12:51

3

Solved

I'm trying to use Bevy 0.3, and I'm able to use the built-in transforms easily with Camera2dComponents::default(). This is top-down 2D. The issue is trying to synchronise the player's rotation to t...
Discomfiture asked 19/12, 2020 at 14:32

3

Solved

I want to be able to read and set window-settings with Bevy. I attempted to do so with a basic system: fn test_system(mut win_desc: ResMut<WindowDescriptor>) { win_desc.title = "test&qu...
Yerkovich asked 29/8, 2020 at 23:43

1

I would like to be able to get the previously rendered frame and use that as a sampler in the current frame. There is a good set of example code in the Bevy repository to show me how to apply custo...
Concha asked 24/11, 2020 at 3:32

2

Solved

I am currently trying to use events to signal when the character jumps in my Bevy game. I want the system that handles player inputs to send a JumpedEvent which can then be received by other system...
Erastes asked 31/8, 2020 at 17:4

2

Solved

I am trying to execute the below two queries in a bevy system function. fn move_player( mut player_query: Query<(&mut Velocity, &mut Transform, &SpriteSize, &Player), With<Pl...
Jacksmelt asked 12/1, 2023 at 17:1

2

Solved

I'm working on a little boids toy with Bevy, and each boid's velocity/acceleration depends on the position and velocity values of the boids around it. This means that for each boid, I want to run s...
Worley asked 6/9, 2020 at 19:43

2

Solved

What do I have to do to to create a mesh for bevy with the following vertices: let mut vertices : Vec<[f32; 3]> = Vec::new(); vertices.push([0.0, 0.0, 0.0]); vertices.push([1.0, 2.0, 1.0])...
Hyperthermia asked 17/3, 2021 at 16:20

1

Solved

I am currently working on a 3D voxel-based game and I want to have procedural generated chunks based on player movement. But running the chunk generation in a simple system results in huge FPS drop...
Coronograph asked 16/3, 2022 at 21:53

1

Solved

When attempting to print "Hello, world!" to the screen with Bevy, the text would not display until I imported a third-party font file and loaded it as an asset to use as the font value in...
Karankaras asked 30/1, 2022 at 22:39

1

Solved

In the Bevy book the following code is used: struct GreetTimer(Timer); fn greet_people( time: Res<Time>, mut timer: ResMut<GreetTimer>, query: Query<&Name, With<Person>&g...
Develop asked 11/11, 2021 at 20:36

1

I am learning Rust and Bevy engine, and I want to keep certain assets (such as Fonts) loaded during the entire application life-time. // Resource for fonts: #[derive(Default, Clone)] pub struct Re...
Wearisome asked 26/6, 2021 at 14:55

2

Solved

I am trying to see where the mouse is pressed so I can select my character. I have tried the following #[derive(Default)] struct State { // Set up from example mouse_button_event_reader: EventRead...
Seagrave asked 22/8, 2020 at 23:2

2

Using Res<Events<CursorMoved>> I can get the mouse position change in screen space coordinates (zero in bottom-left corner), e.g. #[derive(Default)] struct State { cursor_moved_reader:...
Juttajutty asked 6/11, 2020 at 11:46

0

My laptop doesn't have a dedicated GPU. I run elementary OS 5 on this laptop, which has an integrated GPU. When I try running my beginner's Bevy app, use bevy::prelude::*; fn main() { App::build(...
Dogfight asked 3/9, 2020 at 7:57

1

Solved

I have a query system that finds an object in which the mouse is over. This is not a button, but, I wish to change the color. I'm not sure where to start. What property would I query and how would ...
Derinna asked 24/8, 2020 at 5:43

1

Solved

Bevy, a new Rust game engine and ECS, has a feature where it "scopes" its systems based on the type of the arguments. From its docs: The parameters we pass in to a "system function&...
Uchida asked 20/8, 2020 at 1:50
1

© 2022 - 2024 — McMap. All rights reserved.