Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 1.3 KB

TUTORIAL.md

File metadata and controls

35 lines (18 loc) · 1.3 KB

PBD2D Tutorial

  1. Add Simulation Template in project hierarchy (right click then PBD2D/Simulation Template).

tutorial-1

  1. Add entity TriMesh in project hierarchy (right click then PBD2D/TriMesh).

tutorial-2

  1. Connect entity with the World from Simulation Template.

tutorial-3

  1. Create serialized data in project assets.

tutorial-4

  1. Configure serialized data: select texture for triangulation, and hit "Triangulate" button.

tutorial-5

  1. Select created serialized data in created entity. Note: turn on the gizmos to see the TriMesh preview. One can return to point 5. and play with the triangulation settings to produce different meshes.

tutorial-6

  1. Attach components required for your setup. Minimal setup for simulated softbody, collidable with ground and other TriMesh can be found below.

tutorial-7

  1. To control the behavior of the body, i.e. friction or collisions, create Physical Material in project assets and attach it the selected entity.

tutorial-8a

tutorial-8b