Giter Club home page Giter Club logo

Comments (5)

ColinGilbert avatar ColinGilbert commented on May 18, 2024

Raycast class header:

class noob::character_controller
{
    class groundcast_callback : public rp3d::RaycastCallback
        {
            public:
                groundcast_callback(noob::vec3 _from, noob::vec3 _to) : grounded(false), from(_from), to(_to), slope(0.0, 0.0, 0.0) {}
                virtual rp3d::decimal notifyRaycastHit(const rp3d::RaycastInfo& info);
                bool is_grounded() const { return grounded; }
                noob::vec3 get_slope() const { return slope; }

            protected:

                //float cast_distance;
                bool grounded;
                noob::vec3 from, to, slope;             
        };
};

Raycast class implementation:

rp3d::decimal noob::character_controller::groundcast_callback::notifyRaycastHit(const rp3d::RaycastInfo& info)
{
    grounded = true;
    slope = info.worldNormal;

    return 0.0;
}

from reactphysics3d.

JordanWhittle avatar JordanWhittle commented on May 18, 2024

Has anyone found out what exactly causes this yet?

from reactphysics3d.

DanielChappuis avatar DanielChappuis commented on May 18, 2024

I am currently working on the next version of the library that I expect to release this summer. I have refactored a lot of the collision detection code in order to make it faster and more robust. I also expect to fix this issue for this release.

from reactphysics3d.

DanielChappuis avatar DanielChappuis commented on May 18, 2024

I will try to fix this issue. However, this issue has been created about the bug happening in GJK algorithm during ray casting against a capsule shape but GJK is not used for ray casting with capsule shape. In the trace, it seams to happen during ray casting against a convex mesh instead.

Do you also observe this issue during ray casting ? Against which kind of shape?

from reactphysics3d.

DanielChappuis avatar DanielChappuis commented on May 18, 2024

This issue should now be fixed in the version v0.7.0 of ReactPhysics3D that has been released.
Thanks a lot for reporting this.

from reactphysics3d.

Related Issues (20)

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.