ActorsΒΆ

Static meshes with a Flex Cloth Asset or a Flex Solid Asset can be instantiated using an actor type called Flex Actor. A Flex actor can, for example, be created by converting a static mesh actor in the Details view within the Actor category:

_images/converttoFlex.jpg

The Flex actor can only function properly if the static mesh has a valid Flex asset as described above. The Static Mesh Editor can be quickly opened to configure the Flex asset by double clicking the preview icon of the static mesh:

_images/ActorEditAsset.jpg

A Flex actor inherits the properties of the asset by default. Sometimes it can be useful to override some properties per actor, which can be done in the Flex category:

_images/actorFlexprops.jpg

Static mesh actors can be configured to block other actors or be blocked by other actors. Flex actors typically do not rely on this mechanism, so collision should be turned off in the Collision category by selecting the NoCollision preset:

_images/actorFlexnocollision.jpg

The interaction between actors like the pawn and Flex can be challenging to control. Sometimes it can be good to block actors from intersecting too strongly with Flex actors. This can be achieved by configuring the static mesh actor collision to serve as a proxy object for other actor types. The geometry used for collision can be configured in the Static Mesh Editor. The Collision tab contains options to delete and create new geometry:

_images/proxycollisiongeometry.jpg

Some level of impact on the Flex particles can be desirable for example to have a pawn push and deform an inflated cloth actor. In this case the proxy collision geometry should be smaller than the volume occupied by Flex particles. The geometry, for example the sphere in the screenshot above, can be visualized by clicking the Collision visualization button. It can then be selected and scaled for example. In order to see the manipulation gizmo make sure to also enable the wireframe visualization and disable the Flex visualization.

The proxy collision then needs to be configured in the Flex Actor Details view within the Collision category. It is important to disable collision with the Object Type specified in the Flex Container, which is the “Flex” Object Type by default. The FlexProxy Collision Preset takes this into accound and can be used as a starting point:

_images/ProxyCollisionPreset.jpg