Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/u/doc-sys' into u/doc-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
djeedai committed Oct 28, 2023
2 parents 2fea66b + 8401604 commit b62a9be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ The two formulations are mathematically equivalent, but one may be more suited t

## Custom component support

Custom components are animated like built-in Bevy ones, via a lens.
Custom components are animated via a lens like the ones described in (Bevy Components)[#bevy-components].

```rust
#[derive(Component)]
Expand All @@ -217,11 +217,11 @@ impl Lens<MyCustomComponent> for MyCustomLens {
}
```

Then, in addition, the system `component_animator_system::<CustomComponent>` needs to be added to the application,as described in [System Setup](#system-setup). This system will extract each frame all `CustomComponent` instances with an `Animator<CustomComponent>` on the same entity, and animate the component via its animator.
Then, in addition, the system `component_animator_system::<CustomComponent>` needs to be added to the application, as described in [System Setup](#system-setup). This system will extract each frame all `CustomComponent` instances with an `Animator<CustomComponent>` on the same entity, and animate the component via its animator.

## Custom asset support

The process is similar to custom components, creating a custom lens for the custom asset. The system to add is `asset_animator_system::<CustomAsset>`,as described in [System Setup](#system-setup). This requires the `bevy_asset` feature (enabled by default).
The process is similar to custom components, creating a custom lens for the custom asset. The system to add is `asset_animator_system::<CustomAsset>`, as described in [System Setup](#system-setup). This requires the `bevy_asset` feature (enabled by default).

## Examples

Expand Down

0 comments on commit b62a9be

Please sign in to comment.