Re: Vertical/Horizantel Scaling?
place them along a distance with
Code:
local length = <length of MOSR in px here> --just setting up some vars to prevent
local v = SceneMan:ShortestDistance(self.pos,pos2,true) --horribly messy code later
local number = math.ceil(v.Magnitude / length) --amount of mosrs needed.
for i = 1, number, 1 do --for 1 to however many MOSRs we need, do
local particle = MovableMan:CreateMOSRotating(<MOSR PRESET HERE>, <YOUR RTE HERE>) --sorry if the syntax is wrong
particle.Pos = self.pos v * (i / number) -- position it a fraction along the line
particle.RotAngle = v.AbsRadAngle --make it rotated to the correct angle
MovableMan:AddParticle(particle) --add the particle
end
assuming you're adding them from an object at the origin from the rope and that pos2 is the end of the rope. sorry if the maths is wrong, its nighttime.