Particle Based Physics Engine in Golang
Published on: 2025-06-07 12:41:35
A Simple Physics Engine in GoLang ☻
Introduction
Physix.go is a simple, easy-to-use, and fast physics engine written in GoLang. It provides functions to perform physics calculations efficiently, including particle-based physics simulations.
Features
Vector Calculations
Physics Calculations
Spring Dynamics
Easy to use with Ebiten.go
Getting Started
Prerequisites
GoLang must be installed.
Ebiten must be installed.
Installation
To start, clone this project:
git clone https://github.com/rudransh61/Physix.go
Or install it using go get :
go get github.com/rudransh61/Physix.go
Then run the example files from the ./examples folder. For example:
go run ./examples/ex4.go # which is a simple circular motion
Documentation
Vectors
Vectors are a datatype to store vectors. Import the following file to use vectors:
package main import ( //...other imports "github.com/rudransh61/Physix-go/pkg/vector" )
To make a vector
var MyVector = vector. Vector { X : 30 , Y : 20 } // X is th
... Read full article.