Jump to content

Support our Sponsors >> Thai Friendly | Pattaya News | Pattaya Unplugged | Buy a drink for Soi 6 Girls | Thailand 24/7 Forum | Pattaya CCTV, air quality and Weather | New LIVE STREAMING - PAID AD | NEW PA website | Subscribe to The Pattaya News |Pattaya Investigations | Rage Fight Academy | Buy/Sell Businesses | Isaan Lawyers | Siam Business Brokers | Belts Of Mongering - Mongering Authority | La Poste | Smooci Escorts

Only Games Github <EXTENDED ●>

public class PlayerController : MonoBehaviour { public float speed = 5.0f; public float jumpForce = 10.0f;

private Rigidbody rb;

rb.AddForce(movement * speed);

void Start() { rb = GetComponent<Rigidbody>(); }

Here is the code

Epic Quest

if (Input.GetButtonDown("Jump") && IsGrounded()) { rb.AddForce(new Vector3(0f, jumpForce, 0f), ForceMode.Impulse); } } only games github

bool IsGrounded() { // Raycast down from the center of the player RaycastHit hit; if (Physics.Raycast(transform.position, Vector3.down, out hit, 1.1f)) { return true; } return false; } }

void Update() { float moveX = Input.GetAxis("Horizontal"); float moveZ = Input.GetAxis("Vertical"); public class PlayerController : MonoBehaviour { public float

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.