#Res RapierContext does not exist on Wonderlust init

18 messages · Page 1 of 1 (latest)

solemn relic
#

Trying to use Wonderlust in my project, but cant get it going as im getting message:

`panicked at 'Resource requested by bevy_mod_wanderlust::systems::setup_physics_context does not exist: bevy_rapier3d::plugin::context::RapierContext'``

I FEEL like im adding Rapier correctly. I dont get the same when running Wonderlust example.

Tried

  • Removing framepace
  • .insert_resource(WanderlustPhysicsTweaks(false))

Anyone see what im doing wrong?

Repo (its convoluted): https://github.com/RobertoSnap/bevy-jam2/blob/3d/src/lib.rs

GitHub

Bevy jam game. Contribute to RobertoSnap/bevy-jam2 development by creating an account on GitHub.

marble flame
#

Ping @rich crest

rich crest
#

disabling physics tweaks wouldn't work, since I'll need that for the movement system anyway... this is definitely very odd. My first thought was that you added rapier after wanderlust, but that's not the case. At a glance I can't tell why this is acting up

solemn relic
#

Ok, doing some logging too see whats happening

worthy fractal
#

you're using a version of bevy_rapier3d that was released 5 hours ago, and bevy_wanderlust hasn't updated yet 🙂

#

so this error seems like something that's the result of there being 2 versions of rapier in the dependency tree

rich crest
#

ahh that would definitely do it

solemn relic
#

haha, thank you! Yes, added it 3 hours ago

rich crest
#

wanderlust is still on 0.16 it looks like

worthy fractal
#

interestingly, it seems like 0.17 comes with some new "kinematic character controller" stuff

rich crest
#

👀 woah

solemn relic
rich crest
#

no that's just rigidbodies, this is an actual character controller
like, an alternative to bevy_mod_wanderlust

solemn relic
#

aaa

rich crest
#

it looks nice too. But thankfully wanderlust is a different kind of controller, so they're suited to different purposes

#

this does mean I have little reason to implement any kinematic stuff, since rapier already took care of it
then again, backend agnosticism brings that need back... idk. Many decisions to make for wanderlust

#

@timid talon might find this discovery interesting

timid talon
#

yeah the multiple versions for rapier have bit me a lot, been tryin to use cargo deny to avoid running into it too much