Browse Source

Added soft body video

Shifted cube slightly to avoid intersecting with the cloth
Jorrit Rouwe 2 years ago
parent
commit
7be2b5c416
2 changed files with 7 additions and 1 deletions
  1. 6 0
      Docs/Samples.md
  2. 1 1
      Samples/Tests/SoftBody/SoftBodyShapesTest.cpp

+ 6 - 0
Docs/Samples.md

@@ -73,6 +73,12 @@ This category demonstrates how ragdolls can be made and controlled using keyfram
 |:-|
 |*A pile of ragdolls that are driven to a specific animated death pose. This gives the ragdolls 'stiffness'.*|
 
+### Soft Body
+
+|[![Character Demo](https://img.youtube.com/vi/vJX_3FNISkw/hqdefault.jpg)](https://www.youtube.com/watch?v=vJX_3FNISkw)|
+|:-|
+|*Demonstrates Soft Body physics as simulated by Jolt Physics. Soft body physics can be used for things like cloth and soft balls.*|
+
 ### Character
 
 This category shows how you can simulate a (humanoid) character using a capsule.

+ 1 - 1
Samples/Tests/SoftBody/SoftBodyShapesTest.cpp

@@ -39,7 +39,7 @@ void SoftBodyShapesTest::Initialize()
 	mBodyInterface->CreateAndAddSoftBody(cloth, EActivation::Activate);
 
 	// Create cube
-	SoftBodyCreationSettings cube(SoftBodyCreator::CreateCube(), RVec3(15.0f, 10.0f, 0.0f), cCubeOrientation);
+	SoftBodyCreationSettings cube(SoftBodyCreator::CreateCube(), RVec3(20.0f, 10.0f, 0.0f), cCubeOrientation);
 	cube.mObjectLayer = Layers::MOVING;
 	cube.mRestitution = 0.0f;
 	mBodyInterface->CreateAndAddSoftBody(cube, EActivation::Activate);