How to make a kill floor with respawn in unity - TUTORIAL

How to make a kill floor with respawn in unity - TUTORIAL

Jay

3 года назад

3,215 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Moises Rosas
Moises Rosas - 20.10.2023 10:17

great video brother

Ответить
aishacs
aishacs - 23.08.2023 15:17

For some reason whenever I try to test it and I jump off my character just falls off.

Ответить
ii
ii - 17.03.2023 22:05

good

Ответить
Jayjah Wynter
Jayjah Wynter - 13.11.2022 02:06

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CarController : MonoBehaviour {

// Settings
public float MoveSpeed = 50;
public float MaxSpeed = 15;
public float Drag = 0.98f;
public float SteerAngle = 20;
public float Traction = 1;

// Variables
private Vector3 MoveForce;

// Update is called once per frame
void Update() {

// Moving
MoveForce += transform.forward * MoveSpeed * Input.GetAxis("Vertical") * Time.deltaTime;
transform.position += MoveForce * Time.deltaTime;

// Steering
float steerInput = Input.GetAxis("Horizontal");
transform.Rotate(Vector3.up * steerInput * MoveForce.magnitude * SteerAngle * Time.deltaTime);

// Drag and max speed limit
MoveForce *= Drag;
MoveForce = Vector3.ClampMagnitude(MoveForce, MaxSpeed);

// Traction
Debug.DrawRay(transform.position, MoveForce.normalized * 3);
Debug.DrawRay(transform.position, transform.forward * 3, Color.blue);
MoveForce = Vector3.Lerp(MoveForce.normalized, transform.forward, Traction * Time.deltaTime) * MoveForce.magnitude;
}
}

car script for no reason

Ответить
DomGT
DomGT - 27.06.2022 21:53

does it work with VR?

Ответить
🚀ROCKET LAUNCHER🚀
🚀ROCKET LAUNCHER🚀 - 28.06.2021 22:56

NOICE

Ответить