Giter Site home page Giter Site logo

gszauer / gamephysicscookbook Goto Github PK

View Code? Open in Web Editor NEW
807.0 807.0 86.0 21.3 MB

Source code for Game Physics Cookbook

Home Page: http://gamephysicscookbook.com/

C++ 73.90% C 26.10%
c cookbook game-math intersection math particle-physics physics

gamephysicscookbook's People

Contributors

gszauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gamephysicscookbook's Issues

Querying the octree with a sphere doesn't work

I've already tried multiple times to implement all the geometry code described by both this repository's latest version and the book and it seems that querying the octree for a sphere is always returning wrong results.
That doesn't happen when querying an AABB. That method seems to be working just fine.
The last try I did just a copy-paste of all the library but the error still persists.

ModelPlane doesn't modify the plane's normal

In the ModelPlane function, the plane's normal is transformed by the model's inverse world matrix as needed, but the distance from origin isn't - eg, take a point on the plane, multiply it by the inverse world matrix, and dot it against the transformed normal to get the transformed distance.

GetInterval in OBBOBB test

I was looking on OBB vs OBB test and found that it's calling GetInterval() with obb1 twice.

bool OverlapOnAxis(const OBB& obb1, const OBB& obb2, const vec3& axis) {
Interval a = GetInterval(obb1, axis);
Interval b = GetInterval(obb1, axis);
return ((b.min <= a.max) && (a.min <= b.max));
}

Is this intentional? or is second call supposed to be with obb2?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.