18-03-2018, 02:33 PM
(This post was last modified: 18-03-2018, 02:35 PM by josemendez.)
(18-03-2018, 02:24 PM)usernameHed Wrote: Oh thanks you ! what is the most cost efficient between a distance test, and this calculation ?
thanks you, this Rope asset is realy good btw
A simple distance test is slightly faster, since this code calculates actual rope length.
However, a distance test will only work properly in the case of a rope that is completely straight when tense. If the rope is not straight (imagine a slingshot, in which the rope is tense but bent where it holds the projectile) then the distance test will underestimate rope tension. Keep this in mind when choosing your method!
Also, keep in mind that any performance gains obtained from choosing one or the other will be barely noticeable, if at all. (unless you have hundreds of ropes)