-
Notifications
You must be signed in to change notification settings - Fork 1
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
Oxide engine/feat/physics particle #55
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
===========================================
- Coverage 88.35% 77.44% -10.92%
===========================================
Files 31 38 +7
Lines 1323 1516 +193
Branches 46 55 +9
===========================================
+ Hits 1169 1174 +5
- Misses 139 327 +188
Partials 15 15 |
…eEngine/feat/physics-particle
…eEngine/feat/physics-particle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is plenty of warnings from github actions. Please check.
}); | ||
} | ||
if duration <= 0.0 { | ||
return Err("Cannot integrate with zero duration"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think defining custom error using enum is better than using string as error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use oxide_math::commons::vector::*; | ||
use oxide_math::commons::vector3::Vector3; | ||
|
||
extern crate generational_arena; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extern crate
is no longer needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, you should fix cargo clippy issues.
Summary
Added particle and particle-force generator.
Registration for p-f generators are not implemented yet.
Added AABB for shapes Ball and Cuboid.
Local AABB is for object space, and AABB is for world space. Currently AABB only supports translations.
Planning to replace translation vector with homogenous coordinate matrix , to scaling and rotations.
Key changes
To Be Done