SF Tool Documentation
Search Results for

    Show / Hide Table of Contents

    Namespace SF.Characters.Controllers

    Classes

    Controller2D

    A physics controller used to add custom physics logic to any object. This physics controller adds the ability to invoke events when colliding on per direction basis by using the CollisionController

    GroundedController2D

    A physics controller for grounded characters that help implement gravity, slope mechanics, collision for platforms, and updates the MovementState while using the for custom collision callbacks.

    PlayerController

    A physics controller for the playable character that help implement gravity, slope mechanics, collision for platforms, and updates the MovementState while using the CollisionController for custom collision callbacks.

    This player specific controller also implements logic for the game when paused, character state is moved to a dialogue, and helps set up the instance object for other classes to know what is the player. This sets up the PlayerController instance in the game manager during the awake call. In the start call for objects being loaded at the same time, other objects can now get a reference to the PlayerController after it is set in OnAwake().

    In This Article
    Back to top Generated by DocFX