Registry / other / jakecoffman-cp

jakecoffman-cp

JSON →
library1.2.1gogounverified

A Go implementation of the Chipmunk 2D physics engine.

go get github.com/jakecoffman/cp
INSTALL
IMPORT
SIG · JAKECOFFMAN-CP
J
jakecoffman-cp
othergov1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cp
github.com/jakecoffman/cp

Simple Chipmunk physics simulation

package main import ( "fmt" "github.com/jakecoffman/cp" ) func main() { space := cp.NewSpace() body := space.AddBody(cp.NewBody(1, cp.MomentForCircle(1, 0, 10, cp.Vector{}))) body.SetPosition(cp.Vector{X: 100, Y: 100}) for i := 0; i < 60; i++ { space.Step(1.0 / 60.0) } fmt.Println(body.Position()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
jakecoffman-cp — go get jakecoffman-cp · libregistry