⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    OrientGravityToolModule MonoBehaviour

    Overview

    The OrientGravityToolModule behaviour is used to change the wielder's gravity based on the surface they are aiming at. Holding the primary fire button will show a surface normal marker. Releasing the fire button will change the gravity direction to point into that surface. Pressing reload cancels the tool.

    Inspector

    OrientGravityToolModule

    Properties

    Name Type Description
    Gravity Strength Float The gravity acceleration strength (meters per second squared).
    Collision Layers Layer Mask The physics layers the tool can blink onto.
    Max Distance Float The maximum distance that the character can blink.
    Ground Marker Transform An object in the tool's hierarchy to use as the ground position marker for the blink target (the object will be moved out of the tool's hierarchy).

    See Also

    Wieldable Tools

    The NeoCharacterController

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