static var fixedDeltaTime : float Description描述 The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed. 以秒计间隔,在物理和其他固定帧速率进行更新(像MonoBehaviour的FixedUpdate). For reading the delta tim…
static var deltaTime : float Description描述 The time in seconds it took to complete the last frame (Read Only). 以秒计算,完成最后一帧的时间(只读). Use this function to make your game frame rate independent. 使用这个函数使和你的游戏帧速率无关. 放在Update()函数中的代码是以帧来执行的.如果我们需要物体的移动以秒来执行…
static var timeScale : float Description描述 The scale at which the time is passing. This can be used for slow motion effects. 传递时间的缩放.这可以用于减慢运动效果. When timeScale is 1.0 the time is passing as fast as realtime. When timeScale is 0.5 the time is passing…
0x00 前言 有时候即便是官方的文档手册也会让人产生误解,比如本文将要讨论的Unity引擎中的FixedUpdate方法. This function is called every fixed framerate frame, if the MonoBehaviour is enabled. 而大家似乎也都认为FixedUpdate是在固定的时间间隔执行,不受游戏帧率的影响.其实这么说并不准确,甚至有些误导.因此,我就写这篇文章来聊聊Unity的FixedUpdate方法,或者说来聊聊游戏引…