⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Interface INeoCharacterVariableGravity

    IVariableGravity is used to add the ability to change a character controller's up vector and gravity vector.

    Namespace: NeoCC
    Assembly: NeoFPS.dll
    Syntax
    public interface INeoCharacterVariableGravity

    Properties

    gravity

    The gravity vector applied to this character.

    Declaration
    Vector3 gravity { get; set; }
    Property Value
    Type Description
    Vector3

    lockUpVector

    Used to prevent the up vector changing in certain conditions, such as climbing ladders. Defaults to false.

    Declaration
    bool lockUpVector { get; set; }
    Property Value
    Type Description
    System.Boolean

    orientUpWithGravity

    Should the controller automatically change the up vector to match gravity (treating gravity as a down vector).

    Declaration
    bool orientUpWithGravity { get; set; }
    Property Value
    Type Description
    System.Boolean

    up

    The up axis for the controller in world space.

    Declaration
    Vector3 up { get; set; }
    Property Value
    Type Description
    Vector3

    upSmoothing

    The amount of smoothing over time to apply to changes in the controller up vector. 0 is instantaneous, 1 is 1 second for a full 180 degree rotation.

    Declaration
    float upSmoothing { get; set; }
    Property Value
    Type Description
    System.Single
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX