-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V0.1.1: Refactor and Optimize Fizicks Physics System #1
Commits on Aug 5, 2024
-
Refactor physics system and introduce Space class
- Add Space class to represent the physical environment - Introduce Fizicks class as a wrapper for physics simulation - Remove individual law classes (FirstLaw, SecondLaw, ThirdLaw) - Update Motion class to handle physics updates - Improve type hinting and documentation
Configuration menu - View commit details
-
Copy full SHA for 7f9640a - Browse repository at this point
Copy the full SHA 7f9640aView commit details
Commits on Aug 6, 2024
-
Implement Collision detection and resolution for Matter objects
- Add Collision class with detect and resolve methods - Implement collision detection using distance calculation - Implement elastic collision resolution using vector decomposition - Include type hints and docstrings for better code clarity
Configuration menu - View commit details
-
Copy full SHA for 52e42aa - Browse repository at this point
Copy the full SHA 52e42aaView commit details -
Implement collision detection and resolution with borders
- Add detect_collision_with_border method to check for collisions - Add resolve_collision_with_border method to handle collisions - Include restitution coefficient for energy loss in collisions
Configuration menu - View commit details
-
Copy full SHA for 4537f39 - Browse repository at this point
Copy the full SHA 4537f39View commit details -
Refactor motion module and add collision handling
- Update type hints and imports - Rename 'Space' to 'Area' for consistency - Add collision detection and resolution in Motion.update() - Minor code style improvements
Configuration menu - View commit details
-
Copy full SHA for ac70ea4 - Browse repository at this point
Copy the full SHA ac70ea4View commit details -
Add Area class to represent simulation space
- Introduce Area class with dimensions and boundary properties - Dimensions represented by Vector - Option to set boundaries (default: False for toroidal space)
Configuration menu - View commit details
-
Copy full SHA for a145838 - Browse repository at this point
Copy the full SHA a145838View commit details
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5923e49 - Browse repository at this point
Copy the full SHA 5923e49View commit details
Commits on Aug 10, 2024
-
Implement spatial partitioning for optimized collision detection
- Add SpatialPartitioning class for efficient object lookup - Create ImprovedMotionWithCollision class extending Motion - Update VisualDebugger to use spatial partitioning in simulation - Refactor Object class to include debt attribute - Add SimulationConfig class for centralized configuration
Configuration menu - View commit details
-
Copy full SHA for a9af5a7 - Browse repository at this point
Copy the full SHA a9af5a7View commit details -
Refactor collision detection and add border collision handling
- Rename detect() and resolve() to detect_objects() and resolve_objects() - Add detect_border() and resolve_border() methods for space boundaries - Import Vector class directly for use in resolve_objects()
Configuration menu - View commit details
-
Copy full SHA for 23f6953 - Browse repository at this point
Copy the full SHA 23f6953View commit details -
Add Vector methods: modulo, magnitude, normalize, and dot product
- Implement __mod__ for modular arithmetic - Add magnitude() method to calculate vector length - Implement normalize() to get unit vector - Add dot() method for dot product calculation
Configuration menu - View commit details
-
Copy full SHA for f8736f7 - Browse repository at this point
Copy the full SHA f8736f7View commit details
Commits on Aug 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7027e0a - Browse repository at this point
Copy the full SHA 7027e0aView commit details -
Refactor Matter class and update physics calculations
- Add type hints and improve docstrings - Move physics calculations to Fizicks class - Replace Area with Universe in update method - Simplify apply_force method - Remove collision detection and resolution methods
Configuration menu - View commit details
-
Copy full SHA for 76fadcc - Browse repository at this point
Copy the full SHA 76fadccView commit details -
Refactor Collision class for improved flexibility and toroidal univer…
…se support - Update detect and resolve methods to handle both object-object and object-universe collisions - Add support for toroidal universe in border collision detection and resolution - Improve method naming and organization for better clarity - Update docstrings to reflect new functionality and parameters - Implement debt system for applying collision forces in next update
Configuration menu - View commit details
-
Copy full SHA for 9031775 - Browse repository at this point
Copy the full SHA 9031775View commit details -
Refactor Matter class: Add properties and debt system
- Replace apply_force with add_debt method - Implement position and velocity as properties - Add type hint for Vector - Update class docstring
Configuration menu - View commit details
-
Copy full SHA for 28aaae9 - Browse repository at this point
Copy the full SHA 28aaae9View commit details -
Refactor Motion class and update physics laws
- Replace Area with Universe in Motion.update - Add collision detection with universe boundaries - Update docstrings for clarity and consistency - Remove redundant code in SecondLaw.apply - Reorder collision checks in Motion.update
Configuration menu - View commit details
-
Copy full SHA for 9030b48 - Browse repository at this point
Copy the full SHA 9030b48View commit details -
Add Universe class and enhance Vector functionality
- Introduce Universe class to store universe properties and constants - Add __iter__ and __call__ methods to Vector class - Implement copy() method for Vector class
Configuration menu - View commit details
-
Copy full SHA for 413f4bf - Browse repository at this point
Copy the full SHA 413f4bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 888315d - Browse repository at this point
Copy the full SHA 888315dView commit details