Skip to content

Add spatial hash self-collision to Verlet cloth#17

Open
mmmovania wants to merge 1 commit intomasterfrom
codex/implement-cloth-self-collision-algorithms
Open

Add spatial hash self-collision to Verlet cloth#17
mmmovania wants to merge 1 commit intomasterfrom
codex/implement-cloth-self-collision-algorithms

Conversation

@mmmovania
Copy link
Owner

Summary

  • add spatial hashing based self-collision detection to the Verlet cloth example
  • expose tunable collision radius and cell sizing derived from cloth resolution
  • fix the IntegrateVerlet function so the simulation loop closes cleanly and clamps particles above the floor

Testing

  • g++ -std=c++11 -c OpenCloth_Verlet/OpenCloth_Verlet/main.cpp (fails: missing GL/glew headers in container environment)

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant