Kawaii Physics Shared Publisher
Added in v1.22.0
Kawaii Physics Shared Publisher ships as an experimental feature in v1.22. Its settings and behavior may change in the next version.
In the editor, the node title and the display names of the consumer properties (Simple World Collision's Source and Shared Tag, Procedural Wind's Wind Source and Shared Wind Tag, and the Trigger Gust notify's Gust Target and Shared Publisher Tag) carry "(Experimental)".
Overview
When hair, clothing, and a cape use separate meshes, changing the wind on each node takes repeated work. Shared Publisher lets you set the common direction and strength once and pass them to each part.
BeforeWind set on each part
AfterOne shared wind setup
It can also share Simple World Collision gathering settings and results for nearby walls and props.
Sharing Scope and Publishing Conditions
- Meshes must belong to the same Actor family, identified by following attachment parents, or parent Actors when no attachment parent exists, to a root.
- Provide an always-updated AnimGraph branch for the publisher.
Matching tags alone do not share across families. The Shared Collision available before v1.22 sends hand-authored shapes between nodes and has a different role.
Setup Procedure
- Place one publisher in the body mesh's Post Process AnimBP, or on an always-updated trunk immediately before Output Pose.
- Set its
Shared Group Tag. The default isKawaiiPhysics.Shared.Default. Use only one publisher per family and tag. - On collision consumers, enable
Use Simple World Collision, selectSharedorAutoforSource, and setShared Tagto the publisher's Shared Group Tag. - Add Procedural Wind to wind consumers, select
SharedorAutoforWind Source, and setShared Wind Tagto the publisher's Shared Group Tag.
Publishing happens during Update. A zero-weight branch or inactive state stops publishing even when the pose is connected. Publisher Enabled defaults to true. When false, it keeps its heartbeat and publishes a disabled state: no collision push-out and zero wind.
The Simple World Collision readers count in the publisher's Preview Status (Details) covers only Simple World Collision consumers. Consumers that receive wind through Procedural Wind are not included. If you share only wind, the count can stay at 0 while wind is still being published.
Tag Roles
The tag has a different name on the publisher and on each consumer.
| Where | Property | Role |
|---|---|---|
| Publisher | Shared Group Tag | Decides the shared group it publishes to. This is the only tag that matters on the publisher |
| Collision consumer (Kawaii Physics node) | Simple World Collision's Shared Tag | Selects the publisher to read by its Shared Group Tag |
| Wind consumer (Procedural Wind) | Shared Wind Tag | Selects the publisher to read by its Shared Group Tag |
A consumer's tag is matched exactly against the publisher's Shared Group Tag; a parent tag does not match. For example, if the publisher uses KawaiiPhysics.Shared.Default, a consumer set to KawaiiPhysics.Shared is not shared. Shared Wind Tag is a setting of the consumer's Procedural Wind and is not used on the publisher. Even for the wind in the publisher's Shared Wind, the consumer's Shared Wind Tag must match the publisher's Shared Group Tag.
Sample
Official sample exhibit 4.14 (04_Forces) is a Shared Publisher example. ABP_04_14_Publisher is the publisher, and ABP_04_14_Consumer is the consumer that receives the wind. Changing the publisher's wind direction also changes the consumer's wind direction. This exhibit shares only wind; the publisher's Simple World Collision gathering is disabled.
Shared and Per-Node Settings
| Change you want | Where to tune it |
|---|---|
| Common wind direction and strength for hair and clothing | The publisher's Shared Wind |
| Softer hair or a heavier-looking cape | Each Kawaii Physics node's physics settings |
| A common gathering area and set of nearby collision targets | The publisher's Simple World Collision |
Sharing Nearby Collision
Configure the interval, Object Types, radius, convex handling, ground, and SkeletalMesh handling in the publisher's Simple World Collision settings. During sharing, corresponding consumer gather values are ignored. An Auto consumer uses its own values only when it falls back to Local.
| Publisher Setting | Default | Purpose |
|---|---|---|
| Enabled, inside Simple World Collision | true | Enable collision sharing independently |
| Gather Scope | ActorFamily | Combine bounds of all meshes participating in the same entry; SkeletalMeshComponent uses the publisher mesh bounds |
| Gather Interval | 0.2 seconds | Gather new targets; 0 gathers every frame |
| Object Types | Empty | Empty uses WorldStatic and WorldDynamic |
| Override Gather Radius / Gather Radius | false / 200 cm | Specify a radius instead of the automatic bounds range |
| Override Collision Channel / Collision Channel | false / Pawn | When disabled, use the owning mesh ObjectType to test Block responses |
| Gather Family Members | false | Gather participating meshes for mutual collision |
| Skeletal Mesh Collision | None | None, Bounding Box, or Physics Asset |
For mutual collision within the family, enable Gather Family Members, include Pawn in Object Types, and select a suitable Skeletal Mesh Collision mode. Each consumer excludes its own mesh shapes. Targets must also Block the query Collision Channel.
Sharing Wind
The publisher's Shared Wind distributes 13 fields from wind direction through Random Force Period, plus phase clocks and the active gusts (up to 8). Phase Offset, Seed, Enabled, bone filters, and force space remain consumer settings. Changing only the consumer's shared parameters does not override the publisher during sharing.
While shared, the wind clock advances with the Time Scale of the publisher's Shared Wind. The Time Scale of the consumer's Procedural Wind is not used while shared; it only applies while no publisher exists and the wind runs locally. While the publisher's Enabled or its Shared Wind Enabled is off, the consumer's wind is 0 and the wind clock also stops.
While shared, the wind phase advances with the world's game time so that it stays aligned with the publisher. Changing the consumer node's TimeScale does not change how the phase advances. Applying the wind force to the bones advances in the node's physics time, like other external forces.
With Wind Preset Data Asset and Wind Preset Tag set, initialization and reinitialization apply the selected preset to Shared Wind. Successful publisher application also sets Shared Wind's Enabled=true and TimeScale=1, alongside the eleven preset fields. This differs from the ordinary runtime wind preset API, which preserves those two values. See wind presets for details. These are properties of the publisher's own Shared Wind; applying the preset does not rewrite the consumer's properties with the same names. While sharing, however, the published enabled state and phase clock use the publisher's values.
| Consumer Source | Collision without a Publisher | Wind without a Publisher |
|---|---|---|
| Local | Gather locally | Compute locally |
| Shared | No push-out | Continue with local time accumulation |
| Auto | Fall back to Local | Fall back to Local |
A present publisher with Enabled=false differs from an absent publisher. Its disabled state is shared; Auto does not reactivate the feature by switching to Local merely because the publisher is disabled.
Setup and Runtime Control
The Kawaii Physics Shared Publisher Reference covers placement, sharing tags, and Source behavior when a publisher is absent. Use UKawaiiPhysicsLibrary for gameplay-triggered changes and GetRuntimeNodeInfosOnComponent for reading shared state.
Related UE documentation
- Gameplay Tags — Review the tag dictionary and hierarchy; consult each reference for KawaiiPhysics matching rules. (UE 5.8)