SHARE
TWEET

Unity3D Player Movement Scriptable

JustPrototype Jan 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2. // is a sample for movement a obj.
  3. [CreateAssetMenu()]
  4. public class GameConfiguration: ScriptableObject
  5. {
  6.     [Header("Player movement")]
  7.     public float playerSpeed = 6.0f;
  8.     public float playerSprintSpeed = 6.0f;
  9.     public float playerAcceleration = 30.0f;
  10.     public float playerFriction = 6.0f;
  11.     public float playerAiracceleration = 3.0f;
  12.     public float playerAirFriction = 3.0f;
  13.     public float playerGravity = 9.82f;
  14.     public float jumpAscentDuration = 0.2f;
  15.     public float jumpAscentHeight = 1f;
  16.     public float maxFallVelocity = 10;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top