Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Errors when ending playmode
#28
(25-02-2020, 04:35 PM)josemendez Wrote: Hi,

It's hard to tell, but in your video the highest velocity seems to stop updating right when the rope particles stop moving. Isn't this the expected result?

I'm sorry for the ambiguity of that gif, but its the very thin line which the script is attached to, not the one with the big particles. I basically thinned the line renderer and disabled the particle renderer in order to show you the velocity gizmos of the rope. 

EDIT: also, this script runs on fixed update - shouldn't the velocity be set to 0 if the rope is not moving instead of not updating? 
On a completely still rope, this;
Code:
Debug.Log(rope.solver.velocities[solverIndex].magnitude)

returns a value around 0,5. Why is this not 0? 



I'll change the other things in the script you suggested - I'm not the greatest when it comes to physics and movement so I just learn by mistakes Guiño
Reply


Messages In This Thread
Errors when ending playmode - by TheMunk - 27-01-2020, 01:35 PM
RE: Errors when ending playmode - by TheMunk - 28-01-2020, 11:10 AM
RE: Errors when ending playmode - by TheMunk - 28-01-2020, 12:14 PM
RE: Errors when ending playmode - by josemendez - 28-01-2020, 12:38 PM
RE: Errors when ending playmode - by TheMunk - 28-01-2020, 12:59 PM
RE: Errors when ending playmode - by josemendez - 28-01-2020, 04:24 PM
RE: Errors when ending playmode - by TheMunk - 28-01-2020, 04:45 PM
RE: Errors when ending playmode - by josemendez - 28-01-2020, 05:00 PM
RE: Errors when ending playmode - by TheMunk - 29-01-2020, 09:56 AM
RE: Errors when ending playmode - by josemendez - 29-01-2020, 10:05 AM
RE: Errors when ending playmode - by TheMunk - 13-02-2020, 10:30 AM
RE: Errors when ending playmode - by josemendez - 13-02-2020, 01:14 PM
RE: Errors when ending playmode - by TheMunk - 13-02-2020, 02:04 PM
RE: Errors when ending playmode - by TheMunk - 13-02-2020, 03:39 PM
RE: Errors when ending playmode - by TheMunk - 13-02-2020, 05:00 PM
RE: Errors when ending playmode - by TheMunk - 19-02-2020, 12:06 PM
RE: Errors when ending playmode - by josemendez - 19-02-2020, 12:15 PM
RE: Errors when ending playmode - by TheMunk - 21-02-2020, 10:26 AM
RE: Errors when ending playmode - by josemendez - 21-02-2020, 11:18 AM
RE: Errors when ending playmode - by TheMunk - 21-02-2020, 12:15 PM
RE: Errors when ending playmode - by josemendez - 21-02-2020, 01:36 PM
RE: Errors when ending playmode - by TheMunk - 21-02-2020, 02:11 PM
RE: Errors when ending playmode - by TheMunk - 25-02-2020, 12:22 PM
RE: Errors when ending playmode - by josemendez - 25-02-2020, 12:35 PM
RE: Errors when ending playmode - by TheMunk - 25-02-2020, 04:09 PM
RE: Errors when ending playmode - by josemendez - 25-02-2020, 04:35 PM
RE: Errors when ending playmode - by TheMunk - 26-02-2020, 09:31 AM
RE: Errors when ending playmode - by TheMunk - 02-03-2020, 10:24 AM
RE: Errors when ending playmode - by TheMunk - 02-03-2020, 04:16 PM
RE: Errors when ending playmode - by josemendez - 09-03-2020, 11:00 AM
RE: Errors when ending playmode - by TheMunk - 09-03-2020, 08:52 AM
RE: Errors when ending playmode - by josemendez - 09-03-2020, 11:01 AM
RE: Errors when ending playmode - by TheMunk - 28-02-2020, 02:37 PM
RE: Errors when ending playmode - by TheMunk - 14-02-2020, 02:44 PM