Skip to content

Question about custom collision resolve function #862

@xczics

Description

@xczics

Hi, I'm using rebound to simulation the collision stage during planet formation. And I want to record the relative velocities during the impacts.
I'm not sure when the rebound code (in python) call my custom collision resolve function, the simulation time is the collision time, or is the time before/after the step when collision happens.
I ask because I use the "line" method to detect collisions, and I'm not sure whether should I add extra correction to the relative velocities, or just take the difference between two particles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions