Esempio n. 1
0
    UnityEngine.Vector3 Sim_CoreHelper(Simulation_Core.Vector3 vec)
    {
        var vector = new UnityEngine.Vector3();

        vector.x = (float)vec.x;
        vector.y = (float)vec.y;
        vector.z = (float)vec.z;

        return(vector);
    }
Esempio n. 2
0
    Simulation_Core.Vector3[] Sim_CoreHelper(UnityEngine.Vector3[] vec)
    {
        var vectors = new Simulation_Core.Vector3[vec.Length];

        for (int i = 0; i < vec.Length; i++)
        {
            vectors[i].x = vec[i].x;
            vectors[i].y = vec[i].y;
            vectors[i].z = vec[i].z;
        }
        return(vectors);
    }