Skip to content

Chapter 2: n-body problem code needs adjusting #1095

Open
@doubledherin

Description

@doubledherin

Hey there! We started referring to "movers" as "bodies" here, but forgot to update the last 3 references to "movers":

Image

In addition, there is an earlier code sample (see below) in which the applyForce method is invoked within the Body attract method. Since we're also calling applyForce in the code above, we should update the below code snippet to simply return force instead of applying it.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions