Questions tagged [bevy]

A cross-platform, massively parallel game engine with an entity component system and 2D and 3D renderers.

Read more at the official website.

161 questions
1
vote
0 answers

How can I have multiple forces act on an entity in Bevy?

I'm making a game in rust, in Bevy with Rapier2d physics. I want to apply forces to the entities from different functions (systems). How is multiple external forces added to entities?
1
vote
1 answer

How to set multiple Default plugins in bevy

I want to set the window plugin and the image plugin but I get an error. The problem is here I know. But I can't fixed. I want to use also…
George C.
  • 6,574
  • 12
  • 55
  • 80
1
vote
1 answer

Render WASM Graphics to Custom HTML Canvas

I have setup a WASM project using Rust and a game engine called Bevy to create graphics within a Svelte app. However, when I run the init() function generated by wasm-pack, it creates a canvas element for the graphics to be rendered into. Is there…
szammyboi
  • 25
  • 5
1
vote
1 answer

Access bevy asset right after loading via AssetServer

Is it possible to access a bevy asset right after it was loaded from the AssetServer? I've read actual loading happens in the background but couldn't find in either official documentation or the bevy cheat book if it is possible to wait for the…
mpellie
  • 11
  • 1
1
vote
2 answers

How to use Windowdescriptor in Bevy?

use bevy::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) .insert_resource(WindowDescriptor{ width: 140.0, height:140.0, title: "Game of Life".to_string(), …
1
vote
1 answer

How to change Alpha in the various Sprite-types, in Bevy 0.8?

Bevy v0.8 has several "displayable-object" types, Sprite/SpriteBundle, SpriteSheetBundle, and MaterialMeshBundle. I would like to change the transparency (Alpha-channel, stored on Color Components) of, well, all of them - if possible. The Answer…
John C
  • 6,285
  • 12
  • 45
  • 69
1
vote
1 answer

How to make a window in Bevy that is a transparent overlay that doesn’t interfere with the underlying applications (doesn’t block mouse, keyboard etc)

I would like to create a bevy window that: Has no background Has no window decoration Is always on top Doesn’t interfere with input to the underlying window. I have done some research, and I think that on windows you can set a value called “input…
James G
  • 13
  • 4
1
vote
1 answer

I can't run the executable of a game made with Bevy

I was following a bevy tutorial and I thought: What if I run the executable? After all, I will want to share my games in the future. When i ran the executable, it said that cannot find 2 dlls, bevy_dylib-5d51f44a630848aa.dll and…
Nyshimori
  • 23
  • 4
1
vote
1 answer

Bevy setup fails because of foreign APIs/missing dependencies

I'm trying to set up Bevy 0.7.0 for the first time on Ubuntu 20.04, following the official guide on their website, and as soon as I configured it for fast compiles, it stopped compiling altogether. At first, it didn't find the clang linker, even…
1
vote
1 answer

How does seemingly variadic function work as in Actix-web and Bevy?

Ok, I know it is not really a variadic function, but I do not know how to specify it more clearly in the title. Both Actix-web (Route::to) and Bevy (App::add_system) have functions which accept a variable number of arguments. I would very much like…
DaPurr
  • 69
  • 5
1
vote
1 answer

shadertoy's GLSL and Rust Bevy WGSL incoherence

I'm trying to get into Shaders and decided to init a project using Rust and Bevy, the objective is to reproduce a raymarching shader just to confirm that the environment is ok, i was able to reproduce the "fragCoord" by using: var fragCoord:…
Joel Lima
  • 21
  • 5
1
vote
2 answers

How to remove/delete/drop a component across all entities

As part of setup, I'll be generating a component that will then be used to finish the setup of other components. That component will no longer be needed, after that point. So, is there a way of deleting an entire component all at once? I've found a…
mako
  • 1,201
  • 14
  • 30
1
vote
1 answer

How to get Bevy to run longer than 5 seconds on Windows 11 with Geforce RTX 2060

I'm trying to go through the Bevy docs and have noticed that I absoilutely cannot run a single example or basic app for longer than about 5 seconds without getting errors breaking execution. Is there something special outside of the doc's setup…
CoderLee
  • 3,079
  • 3
  • 25
  • 57
1
vote
1 answer

How to test system that requires Time resource?

I want to write tests for system that moves entities and detects collisions, system uses Res
tomaszk
  • 11
  • 1
  • 1
1
vote
1 answer

How to rotate a rectangle in Bevy?

I've been learning Bevy and I can't figure out how to simply rotate a sprite. Here is a minimal example illustrating what appears to be a correctly rotated square but an incorrectly rotated rectangle with one dependency bevy = "0.6.1" and…
Jonathan Woollett-light
  • 2,813
  • 5
  • 30
  • 58