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.12.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.12-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bereshit-0.1.12.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.12.tar.gz
Algorithm Hash digest
SHA256 d26303aecbc5719ac474506b1b72e6f56407f2bfbbf01f70f3269e23c97dda83
MD5 2a68dab8da2c34e105b57654474b2fcd
BLAKE2b-256 e812539f60cd5d09f01eb51317a0f36d9b5af78102016c5b9cc65539aba3903f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bereshit-0.1.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc9124531041831ce0cb27fdc01dfe0235c1c25330c1213eeda1e90e7747d46
MD5 aad51acb7124b5068337a1b487b07a1b
BLAKE2b-256 82bb060316bb9786a1c813b9dd42eb7a8cfdec9b2262be13d7469eb813031db0

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