MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / reset

Method reset

core/input/input.cpp:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void Input::VelocityTrack::reset() {
271 last_tick = OS::get_singleton()->get_ticks_usec();
272 velocity = Vector2();
273 screen_velocity = Vector2();
274 accum = Vector2();
275 screen_accum = Vector2();
276 accum_t = 0;
277}
278
279Input::VelocityTrack::VelocityTrack() {
280 min_ref_frame = 0.1;

Callers 7

~ConvexHullInternalMethod · 0.45
computeMethod · 0.45
test_hash_set.hFile · 0.45
test_paged_array.hFile · 0.45

Calls 2

Vector2Function · 0.50
get_ticks_usecMethod · 0.45

Tested by

no test coverage detected