I emailed the creator and he was very prompt, but doesn't know playmaker.
He sent this back, (I added the .value to fix the errors)
I want a touch to call deformpoint at the touch point, but can not get the variables right.
Here is his code, close, but I need to get the touch point, I tried saving as a vector3 but i'm off somewhere.
{
[ActionCategory(ActionCategory.Transform)]
public class DeformActionPsoftbody : FsmStateAction
{
public FsmVector3 screenPos;
public FsmFloat impactForce;
public FsmFloat impactScale;
// Code that runs on entering the state.
public override void OnEnter()
{
Ray ray = Camera.main.ScreenPointToRay(screenPos.Value);
RaycastHit hit;
if (Physics.Raycast(ray, out hit))
{
PsoftBody hitBody = hit.transform.GetComponent<PsoftBody>();
if (hitBody)
hitBody.DeformAtPoint(hit.point, hit.normal, impactForce.Value, impactScale.Value);
}
Finish();
}
}
}
thank you for any help.
Anthony