Sign in to follow this  
Classless

PhysX Skeletal Animation

Recommended Posts

At the moment, we are using NxActor::moveGlobalPose() to animate physical bones when a ragdoll/character is not dynamic, then I ran into this comment in the PhysX documentation: When moving jointed actors the joints' cached transform information is destroyed and recreated next frame; thus this call is expensive for jointed actors. The function it's talking about is setGlobalPose(), I wonder if moveGlobalPose() has the same problem? And what's the preferred way of doing non-intractable skeletal animation in PhysX(We need to update physical bones for bullet impact report, but we don't care about other collision response)?

Share this post


Link to post
Share on other sites
first of all, moveGlobalPose is intended for kinematic actors, so make sure you've raised the kinematic flag before using this. In general, moveGlobalPose( ) is the way to go for what you're talking about.

for your second question, you'll want to make use of the NxUserRaycastReports that can be sent in as part of your raycastAllShapes or whatever you use.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this