void Start() { softbody = GetComponent <ObiSoftbody>(); softbody.OnEndStep += Softbody_OnEndStep; norms = new float[softbody.particleCount]; counts = new int[softbody.particleCount]; if (skin != null && skin.sharedMesh != null) { colors = new Color[skin.sharedMesh.vertexCount]; } }
// Start is called before the first frame update void Start() { softbody = GetComponent <ObiSoftbody>(); softbody.solver.OnCollision += Solver_OnCollision; }