RapierPhysicsPlugin
requires generics
#501
Labels
A-Integration
very bevy specific
C-Enhancement
New feature or request
D-Difficult
Needs strong technical background, domain knowledge, or impacts are high, needs testing...
P-Low
S-not-started
Work has not started
Trying to add the plugin the way that most Bevy plugins are added fails:
It fails because Rust cannot infer the type for
PhysicsHooks
. Instead, you need to do something like this:or:
This isn't obvious for new users, and is especially confusing because the plugin has no documentation example (outside the website's general usage guides). The use of
NoUserData
or the concept of physics hooks isn't even explained on the website before the "Advanced collision-detection" section, even though the plugin initialization is essentially the first thing that a user has to do. It shouldn't be necessary to use generics here.Additionally, limiting the user to a single
PhysicsHooks
type feels rather limiting and annoying from a composability standpoint. But that's another issue.The text was updated successfully, but these errors were encountered: