Plonq / bevy_rts_camera

RTS-style camera controls plugin for Bevy Engine
Apache License 2.0
53 stars 5 forks source link

Derive the Reflect trait on the Ground component #11

Closed tad-lispy closed 4 months ago

tad-lispy commented 4 months ago

This fixes https://github.com/Plonq/bevy_rts_camera/issues/7 by allowing to call app.register_type::<Ground>() in applications using this crate. Maybe this should even be done in the plugin setup? I'm not sure, so as a starting point I'm leaving it to application developers to register the type in their apps.

For context, this is required (?) in order to use scenes loaded from .glb (GLTF) files. If you would like that, I can probably make a simple example to demonstrate how to use RTS camera with GLTF assets.

Plonq commented 4 months ago

I can't find any documentation on this, so if you find any, please send it my way. I will look into this further when I get the chance. In the meantime, I don't see any harm in this so I've merged and I'll release a new version shortly (edit: done - 0.5.1).