Commit Graph

343 Commits

Author SHA1 Message Date
Dander7BD ff52977dcf Bug fixes
including a hack
2013-12-20 12:08:24 +01:00
Dander7BD 461fecd1d2 Bug fixing
SimpleRigidBody::GetNormal returned wrong results.
Second bounce impulse in OnPossibleCollision, should be subtracted
instead of added.
2013-12-20 12:08:24 +01:00
Dander7BD 9b9e549a5e bug fix in bool Intersect( const Box &box, const Sphere &sphere, Float4 &worldPointOfContact ) 2013-12-20 12:08:22 +01:00
Dander7BD 840f000ec9 Bug fix in API_Impl OnPossibleCollision(...) 2013-12-20 12:08:22 +01:00
Dander7BD 4ebb8cd9b8 Minor edit in CustomBodyState 2013-12-20 12:08:21 +01:00
Dander7BD 4e21e2b0c0 Renamed Formula::CollisionResponse::Impulse to..
.. Formula::CollisionResponse::Bounce
2013-12-20 12:08:20 +01:00
Dander7BD 24418603ad ICustomBody::GetNormal returns Float4::null if..
.. no normal can be decided.
2013-12-20 12:08:20 +01:00
Dander7BD 76c83add3d Added sanity check to SphericalRigidBody::GetNormalAt 2013-12-20 12:08:19 +01:00
Dander7BD 42418257cb CustomBodies now aware of it's scene
+ other minor changes
2013-12-20 12:08:18 +01:00
Robin Engman 59d5a3dc1e Created function for friction 2013-12-20 12:08:17 +01:00
Dander7BD 9cee69edd6 Extended friction content of the ICustomBody::State struct 2013-12-20 12:08:17 +01:00
Robin Engman 56dec6cf5d Added "alpha" friction
Alpha means that the friction is not tested and most likely needs
tweaking.
2013-12-20 12:08:16 +01:00
Dander7BD 09e55ddc30 SimpleRigidBody::GetNormalAt Done
implemented by using RayVsPlane tests
2013-12-20 12:07:46 +01:00
Dander7BD 5051a9e767 Major StateStruct and API update 2013-12-20 12:07:45 +01:00
Dander7BD 96bf20e5ae compile errors fixed 2013-12-20 12:07:43 +01:00
Dander7BD dbb0c38432 Big patch
Loads of collision response related implementations/edits
2013-12-20 12:07:43 +01:00
Robin Engman 9cdbe2c861 Added algorithms for collision stubs 2013-12-20 12:01:08 +01:00
Dander7BD e8952dc739 CollideAble implementations updated 2013-12-20 12:01:07 +01:00
Dander7BD 632570f66b Updated the BoxVsBox collision alghorithm
and added overloaded
2013-12-20 12:01:06 +01:00
Dander7BD a03568e19e Updated formula for BoxVsBox point of contact
good enough approximation. Tested
2013-12-20 12:01:05 +01:00
Dander7BD ec6cd72f3c SeperatingAxisTest_AxisAlignedVsTransformedBox overloaded 2013-12-20 12:01:05 +01:00
Dander7BD 4858f573e6 Added more collision subs 2013-12-20 12:01:04 +01:00
Robin Engman d8b323e230 Extractable collision point for SphereVSSphere 2013-12-20 12:01:03 +01:00
Dander7BD a3ced24fea Some compile error fixes 2013-12-20 12:01:02 +01:00
Robin Engman 61e1d20748 Fixed const problem 2013-12-20 12:01:02 +01:00
Robin Engman 5f305b7086 Oops 2013-12-20 11:59:38 +01:00
Robin Engman 283633c6c6 Added stub functions
More funcitonallity for intersect functions.
2013-12-20 11:59:37 +01:00
Dander7BD de0078265c Stub response to new ICollideAble method
Stubbed: Box, BoxAxisAligned, Frustrum
Fully implemented: Line & Universe
2013-12-20 11:59:36 +01:00
Dander7BD da996a5deb Added cirtual function to ICollideAble
Overload of Intersects(...)
2013-12-20 11:59:35 +01:00
Dander7BD c854b1af58 Stuff 2013-12-20 11:59:35 +01:00
Robin Engman c740bd5935 Added some data to PhysicsAPI
GetRigidLinearVelocity() and void* as reference to game object.
2013-12-12 10:02:35 +01:00
Dander7BD 5835a72acc Setstruct introduction done
Can be found as:
Physics::Struct::CustomBodyState
Physics::ICustomBody::State
Is all inline thus no expensive API calls, as intended.
Will be expanded to move API call methods from Physics::ICustomBody to
it.
2013-12-06 09:46:30 +01:00
Dander7BD d0936f9133 InverseRotationMatrix fixed
Compiler overstepping its bound, doing whatever it wants.
2013-12-04 14:22:25 +01:00
Dander7BD 7ad60969fc Sphere Vs Box collision detect fix
second ed. ... Works now! :3
2013-12-04 14:12:06 +01:00
Dander7BD e0adc0ae93 Sphere Vs Box collision detect fix 2013-12-04 13:52:07 +01:00
Dander7BD 202ee23b25 Octtree::leafData Container should be kept updated now 2013-12-04 11:49:33 +01:00
Dander7BD 080bbf68fd Collideables fixed
Missing returns
2013-12-04 11:42:11 +01:00
Dander7BD 1d94ed0ddc Fixed MomentOfInertia methods 2013-12-04 11:30:56 +01:00
Dander7BD f10f3b0bef Merge branch 'Physics' of https://github.com/dean11/Danbias into Physics 2013-12-04 10:05:02 +01:00
Dander7BD 87e9d137ea Merge remote-tracking branch 'origin/Graphics' into Physics 2013-12-04 09:58:11 +01:00
lanariel 47aa2c89a2 Quick Error fix and using .png 2013-12-04 09:56:03 +01:00
Robin Engman f2548c43ce Merge branch 'Physics' of https://github.com/dean11/Danbias into Physics 2013-12-04 09:52:03 +01:00
Robin Engman b03e9af027 Fixed octree and API
Rewrote AddObject function in octree and OnPossibleCollision in
PhysocsAPI_Impl
2013-12-04 09:51:48 +01:00
lanariel ce294cd1d7 Forgot to add a folder 2013-12-04 09:43:43 +01:00
lanariel d03f1eaf44 Merge to sprint2 2013-12-04 09:42:52 +01:00
lanariel f29af8b8bd Release Now Stable 2013-12-04 09:36:43 +01:00
Dander7BD e4476f7757 Added function for ICustomBody
void ICustomBody::SetMomentum( const ::Oyster::Math::Float3 &worldG )
- Added and implemented
2013-12-03 15:11:24 +01:00
Robin Engman 0a0e327d71 Merge branch 'Physics' of https://github.com/dean11/Danbias into Physics 2013-12-03 11:31:24 +01:00
dean11 10c786b745 Update .gitignore 2013-11-29 21:23:05 +01:00
dean11 afd7652b6e Update .gitignore 2013-11-29 20:58:53 +01:00