Module jumpy::core::attachment
source · Expand description
Utilities for attaching entities to other entities.
There are two kinds of attachments: Attachment
and PlayerBodyAttachment
.
Attachment
just makes one entity follow another, with some special handling for sprites, and
the PlayerBodyAttachment
specifically matches the player’s body movement animation to make
sure that, for example, a held item will bob up and down with the player.
Structs§
- Component for attaching an entity to another entity.
- Component that animates attachment offset with easing
- Metadata for
AttachmentEasing
- Metadata for attachment
- This is used by the
update_player_body_attachments
system internally. - A component for attaching an entity to the player’s body.
Functions§
- System that cleans up old
Attachment
andHadPlayerBodyAttachmentMarker
components from an entity when thePlayerBodyAttachment
is removed. - System to update the transforms of entities with the
Attachment
component. - System that updates entities with the
PlayerBodyAttachment
component.