Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi rope cutting not accurate
#10
(31-05-2022, 11:12 AM)josemendez Wrote: Hi,

Just tested the script on iOS (iPhone 7) and it works just fine.
Have you checked the console in XCode for null ref errors or other issues that would be preventing the script from running at all?


Only if Input.simulateMouseWithTouches is enabled, and even then it only works for 1 touch (the first one). This is mentioned in the script's comments:

Code:
/**
 * Very simple mouse-based input. Not ideal for multitouch screens as it only supports one finger, though.
 */
private void ProcessInput()
    {

Hi Jose, 
The problem is about the shader code in AddMouseLine() method.
Code:
lineRenderer.sharedMaterial = new Material(Shader.Find("Unlit/Color"));


I don't know why but shader is null after that code. I created and assigned a material and it is working now. Last question; which solver backend do you recommend for mobile games, Oni or Burst? Thanks for your support.
Reply


Messages In This Thread
Obi rope cutting not accurate - by debruw - 30-11-2021, 12:07 PM
RE: Obi rope cutting not accurate - by josemendez - 30-11-2021, 12:14 PM
RE: Obi rope cutting not accurate - by debruw - 30-11-2021, 12:40 PM
RE: Obi rope cutting not accurate - by josemendez - 30-11-2021, 12:47 PM
RE: Obi rope cutting not accurate - by debruw - 30-11-2021, 01:28 PM
RE: Obi rope cutting not accurate - by josemendez - 30-05-2022, 12:11 PM
RE: Obi rope cutting not accurate - by josemendez - 31-05-2022, 11:12 AM
RE: Obi rope cutting not accurate - by martymayfly - 31-05-2022, 12:38 PM
RE: Obi rope cutting not accurate - by josemendez - 31-05-2022, 12:48 PM