Bevy provides simple shapes to whitebox a level or to create simple gameplay prototypes.
Ideally I would like to use bevy_proto to define the locations and shapes for faster iterations, especially for colliders for rapier etc., but when I try to get the handle of the created mesh, it panicks.
Bevy provides simple shapes to whitebox a level or to create simple gameplay prototypes.
Ideally I would like to use
bevy_proto
to define the locations and shapes for faster iterations, especially for colliders for rapier etc., but when I try to get the handle of the created mesh, it panicks.Here is what I tried to do:
The panic happens when I try to extract the
mesh_handle
from thecommands_get_handle()
.How exactly can I pass the
Handle<Mesh>
from theprepare
invocation to theinsert_self
.