Advertisement
JustPrototype

Unity3D Player Movement Scriptable

Jan 18th, 2019
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement