Paint: Unity Project: Argos_Sphere_Networking – in AR_Dev/Archives public void OnPaintButtonDown() { if (userMovement.isCursorValid()) { bPaintOn = true; iStartPaint = 0; currPE_Idx++; txtNumPaintElements.text = currPE_Idx.ToString(); paintList.Add(Instantiate(paintElement)); paintList[currPE_Idx].transform.SetParent(argos_Sphere.transform); paintList[currPE_Idx].transform.localPosition = Vector3.zero; Quaternion LocalRotation = Quaternion.Inverse(argos_Sphere.transform.rotation); vLastLoc = userMovement.cursorTran.pos – argos_Sphere.transform.position; Vector3 vRotated = LocalRotation * vLastLoc; vLastLoc = vRotated; myPaintRotation = argos_Sphere.transform.rotation; } } if (bPaintOn) { … Continue reading Argos Paint Methods
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed