⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ConstrainCameraYaw MotionGraphBehaviour

    Overview

    The ConstrainCameraYaw behaviour is used to constrain the player character's camera to a specific yaw direction while inside a motion state. An example is using the wall normal vector during a wall run to prevent the character turning into the wall (and to turn when running along curving walls).

    Inspector

    ConstrainCameraYaw

    Properties

    Name Type Description
    Constraint Type Dropdown What to constrain the yaw to. The available options are: DirectionVector, TargetVector, TransformForward, TransformDirection, Velocity.
    Direction VectorParameter The vector parameter to use as the constraint direction. This will only appear if the constraint type is set to DirectionVector.
    Target VectorParameter The vector parameter containing the target point. This will only appear if the constraint type is set to TargetVector.
    Transform TransformParameter The transform parameter to use as the constraint target. This will only appear if the constraint type is set to TransformForward or TransformDirection.
    Angle Range Float The angle range to constrain to.
    Flipped Boolean Flip the direction vector.
    Continuous Boolean Should the constraints be updated each frame (if the vector parameter changes). This will not appear if the constraint type is set to Velocity as the constraint will always be continuous in that situation.

    See Also

    MotionController

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX