Thanks for the confirmation.
I have applied the Teleport fix.
However, I am getting the following error in Teleport.
This occurred before the Teleport modification, so the use of the Teleport source code is irrelevant.
The SoftBody that Teleport is using is based on the following method.
http://obi.virtualmethodstudio.com/manua...ctors.html
The error is generated by the following code
The solution to this problem is simple: simply wait in front of Teleport as shown below. However, this is not preferred.
How do I resolve this ArgumentOutOfRangeException error?
I have applied the Teleport fix.
However, I am getting the following error in Teleport.
Code:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <88e4733ac7bc4ae1b496735e6b83bbd3>:0)
Obi.ObiSoftbody.Teleport (UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at Assets/Obi/Scripts/Softbody/Actors/ObiSoftbody.cs:183)
The SoftBody that Teleport is using is based on the following method.
http://obi.virtualmethodstudio.com/manua...ctors.html
The error is generated by the following code
Code:
// parent the softbody under a solver to start simulation:
softbody.transform.parent = solver.transform;
IEnumerator bind = skinner.BindSkin();
while (bind.MoveNext()) { }
softbody.transform.parent = solver.transform;
softbody.Teleport(new Vector3(0, 0, 0) , Quaternion.Euler(0, 0, 90)); //Error
The solution to this problem is simple: simply wait in front of Teleport as shown below. However, this is not preferred.
Code:
yield return new WaitForSeconds(1.0f);