Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

deltatime

Time.deltaTime // time passed between frames
  			   // used multiplied to an effect in Update()
  			   // e.g.: Rigidbody.AddForce(0, 0, 2 * Time.deltaTime)
  			   // In this way the force doesn't depend on the framerate
 
PREVIOUS NEXT
Tagged: #deltatime
ADD COMMENT
Topic
Name
5+6 =