Time.DeltaTime?

Maybe I missed something somewhere, but I didn’t see Time.DeltaTime used anywhere? Is it no longer needed?

Thanks.

Hi Joe,

In TileVania the movement is handled by creating new Vectors for the velocity of the Rigidbody2D component, the physics engine is doing the rest, although it would have been better to use AddForce rather than setting the velocity directly.

You would use Time.deltaTime when you want to make the amount of movement framerate independent and are not using the physics engine to calculate the movement.

There’s a good example of both methods in use in the link below.

Hope this helps :slight_smile:


See also;

Yes, Thanks.

1 Like

You’re very welcome :slight_smile:


See also;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms