#FIRST PERSON MOVEMENT (Brackeys)
1 messages · Page 1 of 1 (latest)
if anyone can help me if possible, thank you (I point out that I am a bit of a beginner)
Never used the character controller component nor seen it but pretty sure you need a rigidbody to apply physics?
The character controller is entirely separate from the physics system, no rigidbody required.
@manic pivot what is the video link?
Did you press play?
Character Controller does not include gravity
you watched the entire video or you're at 14:07 minutes, which is it
all video
and you're SURE you did all the code?
you're clicking play right?
why is the pubic variable speed not being serialized in the inspector
I don't understand
show your code again
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public CharacterController controller;
public float speed = 12f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
float x = Input.GetAxis("Hozizontal");
float z = Input.GetAxis("Vertical");
Vector3 move = transform.right * x + transform.forward * z;
controller.Move(move * speed * Time.deltaTime);
}
}
you spelled horizontal wrong
take a screenshot again
bruh
no gravity
ok i'd watch the entire video again just in case you missed some code
yes i go