Velcro Physics Documentation

repository·master·Indexed 20 days ago

https://github.com/genbox/velcrophysics

A high-performance 2D physics engine for .NET, formerly known as Farseer Physics. It provides realistic collision detection and simulation for games and robotics, featuring continuous collision detection, dynamic tree and quad tree broadphase, various joint constraints, and a dedicated MonoGame integration package.

Tokens
445
Snippets
1
Records
2
Agent score
23%

What's inside Velcro Physics

  1. Overview of Velcro Physics features

    master

    Velcro Physics is a high-performance 2D collision detection system designed for realistic physics responses. It is suitable for games, real-time robotic simulations, and UI feedback systems.

    Key Capabilities

    • Collision Detection: Continuous collision detection (with time of impact solver), support for convex/concave polygons and circles, and multiple shapes per body.
    • Broadphase: Dynamic tree and quad tree broadphase, including fast AABB queries and raycasts.
    • Physics Properties: Friction, restitution, sleep management, and stable stacking via a linear-time solver.
    • Joints & Constraints: Revolute, prismatic, distance, pulley, gear, mouse joints, and more. Supports joint limits and motors.
    • Callbacks: Contact callbacks for begin, end, pre-solve, and post-solve events.
    • Simulation Control: Controllers for gravity and force generators, and collision groups/categories.
    • Utility Tools: Factories for body creation, tools for concave polygon decomposition, convex hull calculation, and boolean operations.
  2. Install Velcro Physics via NuGet

    master

    Velcro Physics can be used as a standard .NET library. You can install the core library or the MonoGame integration via NuGet.

    Core Library

    Use the Genbox.VelcroPhysics package for general .NET applications (games, robotic simulations, etc.).

    MonoGame Integration

    Use the Genbox.VelcroPhysics.MonoGame package for zero-copy integration with the MonoGame framework.

    # Install the core library
    dotnet add package Genbox.VelcroPhysics
    
    # OR install the MonoGame integration
    dotnet add package Genbox.VelcroPhysics.MonoGame