Press escape to exit fullscreen

{{sketch.instructions}}

CC {{sketch.licenseObject.short}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Capture Screenshot

Obstacle Avoidance and Wandering

{{$t('general.by')}}
Click to create objects Press a key to turn debug on/off I am working on a project to model the movement of a skier as they go down the hill. Daniel Shiffman's Nature of Code examples on steering were a great inspiration. Unfortunately, there wasn't any examples about collision avoidance, and all the one's I found only covered circles. So I combined what I learned from Metanet's N Tutorial A - Collision Detection and Response. Obstacles can be any convex polygons. When there is no obstacles, wandering is used.
We recovered an unsaved version of this sketch. Please review your changes below.

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}