Class GroundedController2D
Inheritance
System.Object
GroundedController2D
Assembly: cs.temp.dll.dll
Syntax
public class GroundedController2D : Controller2D, IForceReciever
Fields
_character
Declaration
protected Character2D _character
Field Value
_modifiedColliderSize
Declaration
protected Vector2 _modifiedColliderSize
Field Value
_originalColliderSize
Declaration
protected Vector2 _originalColliderSize
Field Value
_previousColliderSize
Declaration
protected Vector2 _previousColliderSize
Field Value
_slopeNormal
Declaration
protected Vector2 _slopeNormal
Field Value
_slopeSideDirection
Declaration
protected Vector2 _slopeSideDirection
Field Value
_wasGroundedLastFrame
Declaration
protected bool _wasGroundedLastFrame
Field Value
| Type |
Description |
| System.Boolean |
|
IsCrouching
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsFalling
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsGliding
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsGrounded
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsJumping
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsRunning
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
IsSwimming
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
Declaration
protected ContactFilter2D OneWayPlatformFilter
Field Value
| Type |
Description |
| ContactFilter2D |
|
OnGrounded
Declaration
Field Value
| Type |
Description |
| System.Action |
|
OnSlope
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
ReferenceSpeed
Reference speed if used for passing in a value in horizontal calculatin based on running or not.
Declaration
[NonSerialized]
public float ReferenceSpeed
Field Value
| Type |
Description |
| System.Single |
|
SlopeLimit
Declaration
Field Value
| Type |
Description |
| System.Single |
|
SlopeSlipLimit
Declaration
public float SlopeSlipLimit
Field Value
| Type |
Description |
| System.Single |
|
StandingOnSlopeAngle
Declaration
public float StandingOnSlopeAngle
Field Value
| Type |
Description |
| System.Single |
|
Properties
IsClimbing
Declaration
public bool IsClimbing { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
OneWayFilterBitMask
Declaration
protected int OneWayFilterBitMask { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
StandingOnObject
Declaration
public GameObject StandingOnObject { get; protected set; }
Property Value
| Type |
Description |
| GameObject |
|
Methods
CalculateHorizontal()
Declaration
protected override void CalculateHorizontal()
Overrides
CalculateMovementState()
Calculates the current movement state that the player is currently in.
Declaration
protected override void CalculateMovementState()
Overrides
CalculateSlope()
Declaration
public virtual void CalculateSlope()
CalculateVertical()
Declaration
protected override void CalculateVertical()
Overrides
ColisionChecks()
Declaration
protected override void ColisionChecks()
Overrides
GroundChecks()
Declaration
protected override void GroundChecks()
Overrides
LowerToGround()
Declaration
protected void LowerToGround()
Move()
Declaration
protected override void Move()
Overrides
OnAwake()
Declaration
protected override void OnAwake()
Overrides
OnStart()
Declaration
protected override void OnStart()
Overrides
OnStatusEffectChanged(StatusEffect)
Declaration
protected void OnStatusEffectChanged(StatusEffect statusEffect)
Parameters
ResetColliderSize()
Declaration
public void ResetColliderSize()
ResizeCollider(Vector2)
Declaration
public virtual void ResizeCollider(Vector2 newSize)
Parameters
| Type |
Name |
Description |
| Vector2 |
newSize |
|
SideCollisionChecks()
Declaration
protected override void SideCollisionChecks()
Overrides
UpdatePhysics(MovementProperties)
Declaration
public virtual void UpdatePhysics(MovementProperties movementProperties)
Parameters
| Type |
Name |
Description |
| MovementProperties |
movementProperties |
|
Implements