|
I started taking a look at UnitySteer. Basically I have a few waypoints in my scene, and I'm trying to assign that list of Vector3's to the C5.IList that the Vector3Pathway constructor requires. How do I convert from a List to C5.IList ?? No matter what I try it doesn't accept the conversion, and using Path.AddPoint doesn't seem to work either using the default constructor. When trying to convert, Unity gives me the error, 'Cannot convert from the source type to the destination type'. Here is my code
(comments are locked)
|
|
What your code above is doing is trying to cast your IList into C5.IList, which is not a valid cast. There are two quick solutions I can see:
Thanks will try that tonight and let you know if I come right.
May 30 '11 at 11:11 AM
Meltdown
Thanks that works, although I'm still having an issue setting the Path property on my 'agent', please check it out on http://forum.unity3d.com/threads/26217-UnitySteer-steering-library-for-Unity/page5 thanks
May 30 '11 at 07:49 PM
Meltdown
(comments are locked)
|
