relative Examples

The theatre provides a presentation layer for files in the theatre/ directory

The theatre files showcase Polypoint features.

The files within this directory are just standard JavaScript files. They work in a standard setup, but the Polypoint site will access additional meta data within the file, such as title and imports.

Checkout the source code within the theatre directory or run one of the examples.

Browse categories

relative: 19 Examples

Theatre files

  • spaceship-vectors-zero-gravity thumbnail
    Navigate a spaceship in frictionless 2D space using physics-based engine thrust and rotation.
  • spaceship-vectors-radio-controls thumbnail
    Rigid body physics simulation featuring a spaceship with multi-engine thrust and gamepad controls.
  • spaceship-vectors-keyboard thumbnail
    A physics-based spaceship simulator featuring center of mass, engine thrust, and gravity torque.
  • spaceship-vectors-controller thumbnail
    Rigid body physics simulation featuring center of mass, torque, and gravity-gradient dynamics.
  • relative-spaceship2d-vector-engines thumbnail
    Simulate spaceship physics using vector engines, torque, and center of mass calculations.
  • relative-spaceship2d-vector-engines-2 thumbnail
    Simulate spaceship physics with multi-engine thrust, torque calculations, and momentum dynamics.
  • relative-spaceship2d-motion thumbnail
    Simulate a spaceship in frictionless 2D space with rotation, momentum-based thrust, and screen wrapping.
  • relative-motion thumbnail
    Handle relative motion vectors and point navigation using directional movement and rotation logic.
  • relative-motion-5 thumbnail
    A space-sim style system featuring a "Ship" with physics, rotation, and dynamic sector tracking.
  • relative-motion-2 thumbnail
    Advanced movement system for points to navigate toward targets using rotation-aware relative motion.
  • relative-iter thumbnail
    Simulates relative motion of points orbiting a center within a dynamic stage environment.
  • relative-car-motion thumbnail
    Simulate relative car movement with keyboard-driven rotation, acceleration, and target tracking.
  • relative-car-motion-4 thumbnail
    Simulate realistic drifting physics with weight transfer, steering angles, and momentum-based grip.
  • relative-car-motion-3 thumbnail
    A high-fidelity drifting simulator featuring realistic weight transfer, handbrake physics, and flicking.
  • relative-car-motion-2 thumbnail
    Experience realistic drifting physics with weight transfer, steering angles, and momentum-based grip.
  • relative-bubbles thumbnail
    Generate a dynamic field of bubbles that move in relative, oscillating patterns based on their coordinates.
  • rel-function thumbnail
    Create dynamic point movements using relative offsets and bound functions for smooth transitions.
  • coupled-vectors-d thumbnail
    Rigid body physics simulation featuring a ship with multi-engine thrust, mass points, and gamepad support.
  • controller-point thumbnail
    Manages the primary canvas and point relationships for interactive stage interactions.