Skip to main content

Python game engine

Project description

Bereshit

bereshit is a Python game and 3D physics engine module designed to provide a lightweight scene, physics, rendering, and object management framework.

Features

  • 3D vector and quaternion math (Vector3, Quaternion)
  • Physics bodies and collision shapes (Rigidbody, BoxCollider, MeshCollider)
  • Constraint joints (FixedJoint, HingeJoint)
  • Scene and world management (World, Physics)
  • Camera and rendering utilities (Camera, MeshRander, render)
  • Raycasting and collision detection (Raycast, Collision)

Installation

Install the required dependencies listed in requirements.txt:

pip install -r requirements.txt

Quick Start

Use bereshit by importing the package from the project root:

from bereshit import Object, Vector3, Core, Camera, BoxCollider, Rigidbody
from bereshit.addons.essentials import FPS_cam, CamController

cam = Object(position=Vector3(0, 0, -8)).add_component(Camera(), CamController(), FPS_cam())

floor = Object(size=Vector3(10,1,10), position=Vector3(0,-1,0)).add_component(BoxCollider(), Rigidbody(isKinematic=True))

obj2 = Object(position=Vector3(0,2,0)).add_component(BoxCollider(), Rigidbody())

Core.run([cam, floor, obj2])

core class

  • Vector3.py and Quaternion.py for math utilities
  • Object.py for scene objects
  • Rigidbody.py, BoxCollider.py for simulation logic
  • Camera.py, MeshRander.py, render.py for rendering

bereshit License

Copyright (c) 2026 yaly zak

1. Grant of License

Permission is hereby granted to any person obtaining a copy of this software and associated documentation files (the “Software”) to use, copy, modify, merge, publish, and distribute the Software for non-commercial purposes only, subject to the following conditions:

  • The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  • Any modifications to the Software must be clearly documented.
  • Contributors agree that any submitted code may be used, modified, relicensed, or distributed by the project owner without restriction.

2. Non-Commercial Use

“Non-commercial use” includes:

  • personal projects
  • hobby projects
  • educational use
  • research
  • open-source projects
  • game jams
  • non-profit projects

provided that no direct or indirect commercial advantage or monetary compensation is involved.

3. Commercial Use

Commercial use of the Software is prohibited without prior written permission from the copyright holder.

Commercial use includes, but is not limited to:

  • selling games made with the Software
  • monetized games or applications
  • paid products or services using the Software
  • enterprise/internal commercial tools
  • SaaS or cloud-hosted products
  • commercial publishing agreements

To obtain a commercial license, contact:

yaly.zak@gmail.com

4. Contributions

By contributing code, documentation, assets, or other material to this project, you grant the project owner a perpetual, worldwide, non-exclusive, irrevocable right to use, modify, sublicense, and relicense your contributions in both open-source and commercial versions of the Software.

5. No Warranty

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.

IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE SOFTWARE OR THE USE OF THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bereshit-0.1.14.tar.gz (89.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bereshit-0.1.14-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

Details for the file bereshit-0.1.14.tar.gz.

File metadata

  • Download URL: bereshit-0.1.14.tar.gz
  • Upload date:
  • Size: 89.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for bereshit-0.1.14.tar.gz
Algorithm Hash digest
SHA256 730133441ad2b65c1adacba6836cef505282ded7ffa0213726764ed2512e6335
MD5 233a65841bf117e2bc1654284a14d47d
BLAKE2b-256 693c05d534c3beff10ff155702e8cb3adad11a9abcfcbd28f29df7f92753c6ce

See more details on using hashes here.

File details

Details for the file bereshit-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: bereshit-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 99.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for bereshit-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 0f7ab81141cb716700e53c6a03bb11916d39fafa38b4ccba76bc672ecab6fc78
MD5 485bc92554ca0855072f871af1b66f49
BLAKE2b-256 c285f152ae530e19e073ddfb93d518bfeae57f0e63863f53a34775f48909a188

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page