Blender Git Loki
Git Commits -> Revision 7bb8099
Revision 7bb8099 by Lukas Toenne (hair_system) August 5, 2014, 13:18 (GMT) |
Avoid adding all the hair point rigid bodies to the CollisionWorld. Instead we now use a single box-shaped collision object for the whole hair system, and then do direct contact tests for the point objects when there is a potential contact. This avoids O(n^2) issues when inserting lots of collision objects into a DbvtBroadphase. The points now have a radius property of their own as well. |
Commit Details:
Full Hash: 7bb8099e9cd7718c7a7e696d6081fb6d852c4a5e
Parent Commit: d641391
Lines Changed: +122, -24
6 Modified Paths:
/intern/rigidbody/rb_bullet_api.cpp (+1, -1) (Diff)
/source/blender/hair/intern/HAIR_curve.cpp (+1, -0) (Diff)
/source/blender/hair/intern/HAIR_curve.h (+2, -0) (Diff)
/source/blender/hair/intern/HAIR_scene.cpp (+32, -5) (Diff)
/source/blender/hair/intern/HAIR_solver.cpp (+81, -18) (Diff)
/source/blender/hair/intern/HAIR_solver.h (+5, -0) (Diff)
/source/blender/hair/intern/HAIR_curve.cpp (+1, -0) (Diff)
/source/blender/hair/intern/HAIR_curve.h (+2, -0) (Diff)
/source/blender/hair/intern/HAIR_scene.cpp (+32, -5) (Diff)
/source/blender/hair/intern/HAIR_solver.cpp (+81, -18) (Diff)
/source/blender/hair/intern/HAIR_solver.h (+5, -0) (Diff)