Vector Field Force | Visual Effect Graph | 10.2.2
docs.unity3d.com
    Show / Hide Table of Contents

    Vector Field Force

    Menu Path : Force > Vector Field Force

    The Vector Field Force Block uses vector fields to apply a force to the particles. This Block is useful for adding specific forces created in advance and stored in vector field assets.

    2D view of a Vector Field

    Block compatibility

    This Block is compatible with the following Contexts:

    • Update

    Block settings

    Setting Type Description
    Data Encoding Enum The encoding format for the vector field data. The options are:
    • Signed: This Block uses the data as is (typically for float formats).
    • Unsigned Normalized: Data is centered on gray and scaled/biased (typically for 8 bits per component formats).
    Mode Enum The mode this Block uses to apply the force to the particles. The options are:
    • Absolute: Applies the force to the particle as an absolute value.
    • Relative: Applies the force relative to the particle's velocity.
    Closed Field Bool (Inspector) Indicates whether the Block considers the field to be closed or not. If you enable the checkbox, the Block considers the field to be closed which means that it does not affect any particles outside of the Field Transform. If you disable this checkbox, the field wraps and the Block affects particles outside of the Field Transform..
    Conserve Magnitude Bool (Inspector) Indicates whether the Block conserves the magnitude of the field when the size of the Field Transform changes.

    Block properties

    Input Type Description
    Vector Field Texture3D The vector field this Block uses to apply force to the particles.
    Field Transform Transform The transform with which to position, scale, or rotate the field.
    Intensity Float The intensity of the field. Higher values increase the particle velocity.
    Drag Float The drag coefficient. Higher drag leads to a stronger force influence over the particle velocity.
    This property only appears if you set Mode to Relative.
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023