Skip to main content

Kawaii Physics Shared Publisher

Version Info

Added in v1.22.0

Experimental Feature

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

Wind set on each partThree identical wind setups, one for each hair, cape, and skirt mesh.HairCapeSkirtWindWindWindEdit 3 setups

AfterOne shared wind setup

One shared wind setupOne Publisher sends common wind to the same hair, cape, and skirt.HairCapeSkirtPublisherWindEdit 1 setup
Direction and strength come from one Publisher. Hair softness and clothing motion remain adjustable on each Kawaii Physics node.

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​

  1. Place one publisher in the body mesh's Post Process AnimBP, or on an always-updated trunk immediately before Output Pose.
  2. Set its Shared Group Tag. The default is KawaiiPhysics.Shared.Default. Use only one publisher per family and tag.
  3. On collision consumers, enable Use Simple World Collision, select Shared or Auto for Source, and set Shared Tag to the publisher's Shared Group Tag.
  4. Add Procedural Wind to wind consumers, select Shared or Auto for Wind Source, and set Shared Wind Tag to 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.

WherePropertyRole
PublisherShared Group TagDecides 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 TagSelects the publisher to read by its Shared Group Tag
Wind consumer (Procedural Wind)Shared Wind TagSelects 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 wantWhere to tune it
Common wind direction and strength for hair and clothingThe publisher's Shared Wind
Softer hair or a heavier-looking capeEach Kawaii Physics node's physics settings
A common gathering area and set of nearby collision targetsThe 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 SettingDefaultPurpose
Enabled, inside Simple World CollisiontrueEnable collision sharing independently
Gather ScopeActorFamilyCombine bounds of all meshes participating in the same entry; SkeletalMeshComponent uses the publisher mesh bounds
Gather Interval0.2 secondsGather new targets; 0 gathers every frame
Object TypesEmptyEmpty uses WorldStatic and WorldDynamic
Override Gather Radius / Gather Radiusfalse / 200 cmSpecify a radius instead of the automatic bounds range
Override Collision Channel / Collision Channelfalse / PawnWhen disabled, use the owning mesh ObjectType to test Block responses
Gather Family MembersfalseGather participating meshes for mutual collision
Skeletal Mesh CollisionNoneNone, 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 SourceCollision without a PublisherWind without a Publisher
LocalGather locallyCompute locally
SharedNo push-outContinue with local time accumulation
AutoFall back to LocalFall 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)