“Unity Time Deltatime” Código de respuesta

Tiempo de unidad. Deltatime Timescale 0

//replace "Time.deltaTime" to this
Time.unscaledDeltaTime
B33bo

Unity Time Deltatime

-- Simple Explanation for Time.deltaTime --

◉	Using Time.deltaTime Unity can tell us how long each frame took to execute

◉	When we multiply something by Time.deltaTime it makes our game
	"frame rate independent "

◉	The game behaves the same with slow and fast computers


Here a small Calculation for the big brainers

	◉◉ Slow PC ◉◉		◉◉ Fast Pc ◉◉

Fps:		10					100

Duration	 
of Frame	0.1s				0.01s

Distance
per Second	1 x 10 x 0.1 = 1		1 x 100 x 0.01 = 1

Both, slow and fast pc, move at the same rate. Without deltatime (duration of Frame)
the fast pc would be mooving much faster.

The Real One

Respuestas similares a “Unity Time Deltatime”

Preguntas similares a “Unity Time Deltatime”

Más respuestas relacionadas con “Unity Time Deltatime” en C#

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código