Skip to content

Commit

Permalink
Fix misalignment in examples (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle authored Feb 3, 2024
1 parent 926eee8 commit 478225b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions physx/examples/ball_physx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type PxRigidDynamic = physx::rigid_dynamic::PxRigidDynamic<(), PxShape>;
type PxArticulationReducedCoordinate =
physx::articulation_reduced_coordinate::PxArticulationReducedCoordinate<(), PxArticulationLink>;
type PxScene = physx::scene::PxScene<
(),
*const std::ffi::c_void,
PxArticulationLink,
PxRigidStatic,
PxRigidDynamic,
Expand Down Expand Up @@ -86,7 +86,7 @@ fn main() {
.create(SceneDescriptor {
gravity: PxVec3::new(0.0, -9.81, 0.0),
on_advance: Some(OnAdvance),
..SceneDescriptor::new(())
..SceneDescriptor::new(std::ptr::null())
})
.unwrap();

Expand Down
4 changes: 2 additions & 2 deletions physx/examples/profiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type PxRigidDynamic = physx::rigid_dynamic::PxRigidDynamic<(), PxShape>;
type PxArticulationReducedCoordinate =
physx::articulation_reduced_coordinate::PxArticulationReducedCoordinate<(), PxArticulationLink>;
type PxScene = physx::scene::PxScene<
(),
*const std::ffi::c_void,
PxArticulationLink,
PxRigidStatic,
PxRigidDynamic,
Expand Down Expand Up @@ -111,7 +111,7 @@ fn main() {
.create(SceneDescriptor {
gravity: PxVec3::new(0.0, -9.81, 0.0),
on_advance: Some(OnAdvance),
..SceneDescriptor::new(())
..SceneDescriptor::new(std::ptr::null())
})
.unwrap();

Expand Down

0 comments on commit 478225b

Please sign in to comment.