Skip to content

Commit

Permalink
fix swapped v and w in physx gpu articulation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbxiang committed Jul 25, 2024
1 parent 42f2950 commit f3ca041
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/physx/physx_system.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ struct PhysxPose {
};
static_assert(sizeof(PhysxPose) == 28);

// this is used in physx articulation only
// somehow w and v are flipped compared to rigid body
struct PhysxVelocity {
Vec3 v{};
Vec3 w{};
Vec3 v{};
};
static_assert(sizeof(PhysxVelocity) == 24);

Expand Down

0 comments on commit f3ca041

Please sign in to comment.