You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-44Lines changed: 10 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,51 +8,17 @@ Nova Physics is a lightweight and easy to use 2D physics engine.
8
8
</p>
9
9
10
10
11
-
This is re-packaged Nova Physics Python bindings, as currently official bindings fail to build with ``pip install git+https://github.com/kadir014/nova-physics-python.git`` command.
11
+
This is re-packaged Nova Physics Python bindings, with custom patches.
12
12
13
-
Install with ``pip install git+https://github.com/gresm/nova-physics-python-fixed.git``
14
-
15
-
The command will try to use the [Nova Physics](https://github.com/kadir014/nova-physics) binaries and fall-backs if none found, if you want to force usage pre-build Nova binaries run:
Binaries can be found [here](nova-binaries) but currently only for Linux x86/x86_64. To force building from source run ``NOVA_FORCE="source" pip install git+https://github.com/gresm/nova-physics-python-fixed.git``
The package will be installed under ``nova-physics`` namespace, but to import it in python use ``import nova``. Uninstalling is simple as ``pip uninstall nova-physics``.
20
19
21
-
22
-
# Excerpts from the original [README.md](nova-physics-python/README.md):
23
-
24
-
> # Python binding for [Nova Physics Engine](https://github.com/kadir014/nova-physics)
25
-
>
26
-
> This binding aims to provide a Pythonic API while keeping everything as similar as to the original.
27
-
>
28
-
> ## Usage
29
-
> ```py
30
-
>import nova
31
-
>
32
-
># Create the space
33
-
> space = nova.Space()
34
-
>
35
-
># Create a body with box shape
36
-
> body = nova.Rect(
37
-
> nova.DYNAMIC, # Type of the body
38
-
> nova.Vector2(0, 0), # Initial position of the body
39
-
>0, # Initial rotation of the body
40
-
>5, 5# Width & height of the rect shape
41
-
> )
42
-
>
43
-
># Add body to the space
44
-
> space.add(body)
45
-
>
46
-
># Main loop
47
-
>whileTrue:
48
-
># Advance the simulation with the timestep of 60 times a second.
As of currently, this will build [Nova Physics](https://github.com/kadir014/nova-physics) library from source - support for pre-building it is not yet available.
21
+
By default, this uses a stable release of [Nova Physics](https://github.com/kadir014/nova-physics), if you want a nightly version, run:
0 commit comments