Lachee / raylib-goplus

A newer version of the Go bindings for Raylib
zlib License
75 stars 6 forks source link

[QoL] RayPhsics #11

Open Lachee opened 4 years ago

Lachee commented 4 years ago

The Current Issue There is currently no raylib physics implementation

The Proposal Proposed to add Raylibs implementation of Physics. https://github.com/raysan5/raylib/blob/master/src/physac.h

gen2brain commented 4 years ago

Hi, there is my try to add physac physics here https://github.com/gen2brain/raylib-go/blob/master/physics/physics.go . Something is not properly ported from C, or there is some bug but it doesn't work properly, you can see that easily if you compile example for Go and for C. Perhaps you can find the bug and just use that code.

There are also examples of using chipmunk and box2d https://github.com/gen2brain/raylib-go/tree/master/examples/physics .