์ด ์ ์ฅ์๋ Mรผller et al. (2007) Position Based Dynamics์ ํต์ฌ ์์ด๋์ด๋ฅผ ์์ ์์ ๋ก ๊ตฌํํ ํ๋ก์ ํธ์ ๋๋ค.
- ์
์ ์์คํ
(
ParticleSystem) - ๊ฑฐ๋ฆฌ ์ ์ฝ (
DistanceConstraint) - ๋ฐ๋ณต ํฌ์ ์๋ฎฌ๋ ์ดํฐ (
PBDSimulator) - ์ฝ์ ์ฒด์ธ ๋ฐ๋ชจ (
examples/chain_demo.py) - ์น ๊ธฐ๋ฐ ์ํธ์์ฉ ์ท๊ฐ(Cloth) ๋ฐ๋ชจ (
examples/interactive_cloth.html)
python examples/chain_demo.pycd examples
python -m http.server 8000๋ธ๋ผ์ฐ์ ์์ http://localhost:8000/interactive_cloth.html์ ์ฝ๋๋ค.
์กฐ์๋ฒ:
- ๋ง์ฐ์ค ๋๋๊ทธ: ์ฒ์ ์ก์๋น๊ธฐ๊ธฐ
r: ์ด๊ธฐ ์ํ ๋ฆฌ์
pytest -q