SF Tool Documentation
Search Results for

    Show / Hide Table of Contents

    Class PlayerController

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

    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.

    Inheritance
    System.Object
    PhysicController2D
    ControllerBody2D
    PlayerController
    Implements
    IForceReceiver
    Inherited Members
    ControllerBody2D.CharacterState
    ControllerBody2D.ShapeComponent
    ControllerBody2D.IsRunning
    ControllerBody2D.IsSwimming
    ControllerBody2D.IsJumping
    ControllerBody2D.IsFalling
    ControllerBody2D.IsGliding
    ControllerBody2D.IsCrouching
    ControllerBody2D.IsClimbing
    ControllerBody2D.CollisionInfo
    ControllerBody2D._character
    ControllerBody2D.DebugMode
    ControllerBody2D.Move()
    ControllerBody2D.CalculateHorizontal()
    ControllerBody2D.CalculateVertical()
    ControllerBody2D.FixedUpdate()
    ControllerBody2D.ResizeCollider(Vector2)
    ControllerBody2D.ResetColliderSize()
    ControllerBody2D.UpdatePhysicsProperties(MovementProperties, PhysicsVolumeType)
    ControllerBody2D.ResetPhysics(MovementProperties)
    PhysicController2D.ReferenceSpeed
    PhysicController2D.DefaultPhysics
    PhysicController2D.CurrentPhysics
    PhysicController2D.PhysicsVolumeType
    PhysicController2D.Direction
    PhysicController2D._direction
    PhysicController2D._directionLastFrame
    PhysicController2D._previousDirection
    PhysicController2D.OnDirectionChanged
    PhysicController2D._calculatedVelocity
    PhysicController2D._externalVelocity
    PhysicController2D.CurrentVelocity
    PhysicController2D.IsFrozen
    PhysicController2D.Init()
    PhysicController2D.OnInit()
    PhysicController2D.OnStart()
    PhysicController2D.OnLateUpdate()
    PhysicController2D.OnPreFixedUpdate()
    PhysicController2D.FreezeController()
    PhysicController2D.UnfreezeController()
    PhysicController2D.SetExternalVelocity(Vector2)
    PhysicController2D.SetDirectionalForce(Vector2)
    PhysicController2D.AddVelocity(Vector2)
    PhysicController2D.AddHorizontalVelocity(Single)
    PhysicController2D.AddVerticalVelocity(Single)
    PhysicController2D.SetVelocity(Vector2)
    PhysicController2D.SetHorizontalVelocity(Single)
    PhysicController2D.SetVerticalVelocity(Single)
    PhysicController2D.SetDirection(Single)
    Namespace: SF.Characters.Controllers
    Assembly: cs.temp.dll.dll
    Syntax
    public class PlayerController : ControllerBody2D, IForceReceiver

    Methods

    CalculateMovementState()

    Declaration
    protected override void CalculateMovementState()
    Overrides
    ControllerBody2D.CalculateMovementState()

    OnAwake()

    Declaration
    protected override void OnAwake()
    Overrides
    ControllerBody2D.OnAwake()

    Implements

    IForceReceiver
    In This Article
    Back to top Generated by DocFX