Deformable Object Question

Hi

I would like to create one deformable object (sphere). I used this example:

Ray inputRay = CameraCube.ScreenPointToRay(Input.mousePosition);
This line deforms the sphere from the example according to the mouse position and the camera ray.
I would like to deform the sphere using another object as a stick. When I press the sphere with the stick (a cylinder) the sphere has to be deformed according to the axes of motion of the stick. Does unity3d allows this replacing screenpointtoray with another instruction?

Regards

Sure, why not? You’re limited only by your own programming skill.

You can create a ray with any origin and direction; you don’t have to use ScreenPointToRay.