A Unity Game Engine Asset that Dynamically Deforms a Mesh at Runtime.
Attach the MeshDeformer script to the GameObject you want to be deformed.
To deform the mesh call Deform ()
public void Deform (Vector3 point, float radius, float stepRadius, float strength, float stepStrength, Vector3 direction);
point: The point from which deformation of the mesh starts
radius: The maximum radius to which the deformation affects
stepRadius: The small step value of the maximum radius
strength: The maximum strength of the deformation
stepStrength: The small step value of the maximum strength
direction: The direction of the deformation relative to mesh
Deforms the attached mesh
MeshDeformer meshDeformer = YOUR GAMEOBJECT.transform.GetComponent<MeshDeformer> ();
meshDeformer.Deform (POINT, 0.5f, 0.05f, -0.5f, -0.05f, Vector3.up);
For more examples browse Assets > Deformable Mesh > Examples > Scenes