3 dépôts
An algorithm for detecting intersections between convex polygons by projecting them onto potential separating axes.
Distinguishing note: Candidates refer to data, audio, or network separation, not geometric collision detection algorithms.
Explore 3 awesome GitHub repositories matching game development · Separating Axis Theorem Collisions. Refine with filters or upvote what's useful.
Matter-js is a 2D rigid body physics engine written in JavaScript for simulating realistic physical interactions, collisions, and dynamics in web browsers. It functions as a web physics simulation library that calculates motion, gravity, and constraints for objects rendered on a web canvas. The library includes a built-in canvas physics visualizer to draw physical bodies, joints, and constraints for debugging and gameplay. It distinguishes itself through a plugin system that supports recursive dependency resolution and internal method patching to inject custom logic into the engine's executio
Detects intersections between convex polygons by checking for overlapping projections along potential separating axes.
melonJS is a lightweight HTML5 game engine for building 2D games in the browser using JavaScript. It provides a complete framework for sprite animation, tilemap loading, physics simulation, input handling, and audio playback, with a unified rendering system that automatically switches between WebGL and Canvas2D backends without code changes. The engine distinguishes itself through several integrated capabilities. It features a per-sprite shader pipeline for custom fragment shader effects, a SAT-based collision engine with swappable physics adapters (including built-in SAT, Matter.js, and Plan
Implements a SAT-based collision engine with polygon-accurate detection, spatial partitioning, and raycasts.
cannon.js est un moteur physique 3D JavaScript conçu pour calculer la dynamique des corps rigides et les collisions dans l'espace tridimensionnel. Il fonctionne comme un moteur de dynamique des corps rigides qui modélise la masse, la friction et la vitesse pour déterminer le mouvement des objets, tout en fournissant un cadre mathématique pour appliquer des contraintes physiques et des articulations. Le moteur prend en charge une variété de volumes de collision, y compris les sphères, les boîtes, les polyèdres convexes, les champs de hauteur pour la simulation de terrain et les maillages triangulaires complexes. Il fournit des outils pour identifier les intersections entre ces formes et calculer les zones de contact exactes pour les interactions physiques. Le système couvre de larges capacités de simulation, y compris l'analyse géométrique pour calculer les propriétés des maillages, l'application de contraintes physiques pour créer des assemblages mécaniques et la synchronisation des données de simulation physique avec des maillages 3D externes pour la visualisation.
Implements the Separating Axis Theorem to detect intersections between convex 3D shapes.