My Project
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
GostekMovement Class Reference
Inheritance diagram for GostekMovement:
Modifiable

Classes

struct  Vars
 

Public Types

enum  StunStyle : byte { Explosion = 0 , UntilHitGround , Traumatized }
 

Public Member Functions

void BackToZeroAngle (bool doIt)
 
void SetCapsuleSize ()
 
bool CanStandUp ()
 
void SetPhysicsMaterial (PhysicsMaterial2D mat)
 
void SetSuperman (bool on)
 
void SetRoll (bool on, bool up)
 
void SetGravityForTime (float grav, float timeSecs)
 
void Stun (StunStyle style, float secs=1.5f)
 
void StunOff ()
 
bool CanUseWeapon ()
 
bool IsTippedOver ()
 
bool IsStunned ()
 
bool IsClimbing ()
 
bool IsCursorFacingGround ()
 
void AddForce (Vector2 force)
 
Vector2 GetInitialCapsuleSize ()
 
Vector3 GetCenter ()
 

Public Attributes

LayerMask collisionLayer = 0
 
bool jumpAllowed = true
 
bool crouchAllowed = true
 
bool rollAllowed = true
 
bool airRollAllowed = true
 
bool climbAllowed = true
 
bool supermanAllowed = true
 
bool rotoAllowed = true
 
bool wallRunAllowed = true
 
bool stunAllowed = true
 
float maxVelocity = 35.0f
 
float maxAngularVelocity = 300.0f
 
float maxJetsVelocity = 31.0f
 
float minVelocityForGravity = 1.8f
 
float maxVelocityHorCoef = 1.76f
 
float moveForce = 35.0f
 
float moveSlopeForce = 10.0f
 
float airForce = 12.0f
 
float crouchForce = 18.0f
 
float rollForce = 18.0f
 
float airRollForce = 18.0f
 
float upRollForce = 18.0f
 
float backFlipForce = 70.0f
 
float frontFlipForce = 70.0f
 
float hardRollForce = 180.0f
 
float rollProneForce = 15.0f
 
float jumpUpForce = 120.0f
 
float jumpSideForce = 100.0f
 
float sideJumpVerticalCoef = 0.833333f
 
float groundDrag = 0.9935f
 
float crouchDrag = 0.95f
 
float airDrag = 0.997f
 
float stopDrag = 0.7f
 
float supermanDrag = 0.997f
 
float supermanStopDrag = 0.15f
 
float maxVelocityDrag = 0.98f
 
float toStopSecs = 0.1f
 
float minJumpIntervalSecs = 0.1f
 
float jumpDurationSecs = 0.3f
 
float wallJumpCoef = 3.0f
 
float wallAngle = 0.8f
 
float jumpDistanceHeightPercent = 0.55f
 
float coyoteSecs = 0.05f
 
float rotoPercent = 0.66f
 
float rotoDistance = 4.0f
 
float airRotationSpeed = 1.0f
 
float rotoRotationSpeed = 7.0f
 
float movementAngularDrag = 50.0f
 
float maxRotateAngleDifference = 65.0f
 
float supermanChangeSpeed = 0.29f
 
float supermanChangeTime = 0.4f
 
float supermanAngularDrag = 1.0f
 
float supermanTorque = 20.0f
 
float supermanStunSpeed = 14.0f
 
float supermanPushdownForce = 8.0f
 
float supermanSlideForce = 8.0f
 
float rollCollisionModifier = 0.5f
 
float rollingTorque = 30.0f
 
float rollingDrag = 1.0f
 
float rollingAngularDrag = 0.1f
 
float backFlipSlowdown = 0.8f
 
float frontFlipSlowdown = 0.8f
 
float climbForceModifier = 2.0f
 
float climbVelocityModifier = 0.0f
 
bool afterClimbJump = false
 
float stunnedAngularDrag = 0.1f
 
float defaultStunSecs = 1.5f
 
float stunnedTimeScale = 1.0f
 
float bounciness = 0.0f
 
float agarMassScale = 0.04f
 
CapsuleCollider2D hitBox
 
bool crouchCollider
 
Transform groundPoint
 
Transform headPoint
 
Transform lagDebug
 
Transform cameraCenter
 
float cameraCenterHeight
 
Rigidbody2D body
 
Collider2D col
 
CapsuleCollider2D capsule
 
Controls controls
 
GostekAnimation gostekAnim
 
Vars v
 

Additional Inherited Members

- Properties inherited from Modifiable
NetworkObject net [get]
 

The documentation for this class was generated from the following file: