Utility functions#
- DirectBase.jacobi(coord, mass)#
compute jacobi coordinates from real coordinates
- DirectBase.kick(body, kick, i=None)#
Apply kick to a body
- Parameters:
body (int) – index of body to kick
kick – kick velocity vector for body (cm/s)
i – index where to apply kick
- None
True if
self.yis missing else False- True
use
self.y0- False
use
self.y- <number>
use that index in
self.y