Skip to content

Commit

Permalink
Added material
Browse files Browse the repository at this point in the history
  • Loading branch information
NevilleKing committed Mar 30, 2017
1 parent f80ad37 commit a0e1d28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tutorial 3/MyPhysicsEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,16 @@ namespace PhysicsEngine
enclosure->SetMaterial(woodMaterial);
enclosure->AddToScene(this);

PxMaterial* capsuleMat = CreateMaterial(0, 0, 1); // very bouncy capsules

enclosure->_capsules[0]->SetupFiltering(FilterGroup::CAPSULES, FilterGroup::BALL);
enclosure->_capsules[1]->SetupFiltering(FilterGroup::CAPSULES, FilterGroup::BALL);
enclosure->_capsules[2]->SetupFiltering(FilterGroup::CAPSULES, FilterGroup::BALL);

enclosure->_capsules[0]->Material(capsuleMat);
enclosure->_capsules[1]->Material(capsuleMat);
enclosure->_capsules[2]->Material(capsuleMat);

// Paddles ------------------------------------
// Left
paddles[0] = new Paddle(PxTransform(encPose.p + PxVec3(-2.08f, -3.75f, 6.58f), encPose.q), PxVec3(1.5f, .3f, .5f), 0.1f);
Expand Down

0 comments on commit a0e1d28

Please sign in to comment.