PbrMotion
, motion traits, and new crate bevy_vello_graphics
#44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow up on #39
Changelog
TL;DR
PbrMotion
&BuildPbrMotionExt
build_vector!
macro withBuildVectorMotionExt
bevy_vello_graphics
PbrMotion
&BuildPbrMotionExt
Replace
build_vector!
macro withBuildVectorMotionExt
Motion traits
3 new motion traits are introduced:
TransformMotion
with attribute -transform
FillMotion
with attribute -fill
StrokeMotion
with attribute -stroke
The attributes are used to indicate the identifier of the animated field (e.g.
transform: Transform
forTransformMotion
).Each of these traits must also implements the
GetId
trait.Example:
These motion traits provides default implementations of action creator functions that can be called without using the
act!
macro:New
bevy_vello_graphics
crate!Vector shapes are now separated into a new crate. You can now use them separately from MotionGfx (even if you only need them to be static)!
Shapes include:
Line
Circle
Rect
Bezier Path
And drawing related components:
Brush
Fill
Stroke
As well as their builder systems which rebuilds these shapes when they are being mutated (using Bevy's filter
Changed<T>
):build_vector