bounce_off_square: Check for square-arena bouncing and recalculate directions

View source: R/trajectory.R

bounce_off_squareR Documentation

Check for square-arena bouncing and recalculate directions

Description

Check for square-arena bouncing and recalculate directions

Usage

bounce_off_square(moment, time_next, settings)

Arguments

moment

Position tibble with extra columns 'direction' and 'speed'

time_next

Next timepoint

settings

list with basic properties

Value

Like 'moment', but some directions are adjusted (reversed, swapped), if there were a collision with arena border in next time point ('timestep')


jirilukavsky/motrack documentation built on Jan. 30, 2023, 5:04 a.m.