Code Monkey home page Code Monkey logo

Comments (10)

tgolsson avatar tgolsson commented on June 22, 2024

How is the joint configured?

from physx-rs.

mlp1802 avatar mlp1802 commented on June 22, 2024

How is the joint configured?

All Spherical joints, with limits but rather large limits. EDIT..set motion type to FREE

from physx-rs.

tgolsson avatar tgolsson commented on June 22, 2024

Are you setting motion type per axis?

from physx-rs.

mlp1802 avatar mlp1802 commented on June 22, 2024

Yes like this:

                    PX::set_articulation_joint_type(
                        joint_ptr as PtrArticulationJointReducedCoordinate,
                        PS::PxArticulationJointType::Spherical,
                    );
                    PX::set_articulation_joint_reduced_motion(
                        joint_ptr as PtrArticulationJointReducedCoordinate,
                        PS::PxArticulationAxis::Swing1,
                        PS::PxArticulationMotion::Free,
                    );
                    PX::set_articulation_joint_reduced_motion(
                        joint_ptr as PtrArticulationJointReducedCoordinate,
                        PS::PxArticulationAxis::Swing2,
                        PS::PxArticulationMotion::Free,
                    );
                    PX::set_articulation_joint_reduced_motion(
                        joint_ptr as PtrArticulationJointReducedCoordinate,
                        PS::PxArticulationAxis::Twist,
                        PS::PxArticulationMotion::Free,
                    );

from physx-rs.

tgolsson avatar tgolsson commented on June 22, 2024

Hmm. I'd narrow it down a bit by using a limited spherical joint, and probably using a Force drive type rather than Target. That'd be a more regular setup I think. This seems like a configuration issue, more so than a binding problem until we can prove the opposite. Articulation joints and drives are a lot less forgiving for configuration errors than their regular variants.

Just to double-check though; @blunzn or @bpaberg -- you've both looked at the articulations recently; did you notice any issues with drives?

from physx-rs.

mlp1802 avatar mlp1802 commented on June 22, 2024

I could try to use velocity drive to see if it makes a difference, it should be possible to drive towards an orientation using velocity as well, by setting velocity to zero when target is reached.

from physx-rs.

mlp1802 avatar mlp1802 commented on June 22, 2024

I'm not sure why force drive would work better?

from physx-rs.

mlp1802 avatar mlp1802 commented on June 22, 2024

Ok once I'm home I'll make a minimal example to try to reproduce it.

from physx-rs.

mlp1802 avatar mlp1802 commented on June 22, 2024

My bad, I should've use FORCE joint drive type instead of TARGET.

from physx-rs.

tgolsson avatar tgolsson commented on June 22, 2024

Thanks for the follow-up @mlp1802!

from physx-rs.

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.