Fix T43406: Bring back cloth collisions.
This was disabled during the course of hair dynamics work. The cloth collision solution is based on a secondary velocity-only solver step. While this approach is usable in general, the collision response calculation still does not work well for hair meshes. Better contact point generation is needed here (Bullet) and preferably an improved solver for unilateral constraints.
This commit is contained in:
@@ -1225,6 +1225,16 @@ void BPH_mass_spring_get_position(struct Implicit_Data *data, int index, float x
|
||||
root_to_world_v3(data, index, x, data->X[index]);
|
||||
}
|
||||
|
||||
void BPH_mass_spring_get_new_position(struct Implicit_Data *data, int index, float x[3])
|
||||
{
|
||||
root_to_world_v3(data, index, x, data->Xnew[index]);
|
||||
}
|
||||
|
||||
void BPH_mass_spring_set_new_position(struct Implicit_Data *data, int index, const float x[3])
|
||||
{
|
||||
world_to_root_v3(data, index, data->Xnew[index], x);
|
||||
}
|
||||
|
||||
void BPH_mass_spring_get_new_velocity(struct Implicit_Data *data, int index, float v[3])
|
||||
{
|
||||
root_to_world_v3(data, index, v, data->Vnew[index]);
|
||||
|
Reference in New Issue
Block a user