On Feb 28, 10:07 am, NickBee <[email protected]> wrote: > OK go look at the progress...http://www.nickbee.com/bend > > The left side has a plain and the right side has another cylinder > stuck to the arm and is almost working right. > > I took the position the pink cyl needed to be at .5 force and 1 force > and figured out the equation for in between. > > _rightFollowCyl.x = > _rightBend.vertices[_rightBend.vertices.length-1].x - ((1 - > bendRight.force) * 100); > _rightFollowCyl.y = > _rightBend.vertices[_rightBend.vertices.length-1].y - > ((bendRight.force-.5) * 100); > _rightFollowCyl.z = > _rightBend.vertices[_rightBend.vertices.length-1].z; > _rightFollowCyl.rotationZ = bendRight.force * 180; > > Unfortunately as you can see the from the example it is not a linear > equation. > > Any other ideas for this? > > Also with the lag on the enter frame I'm not sure if this is a viable > solution for what I'm looking to do. I might have to end up with > multiple 3d objects to simulate the bending. This would give me more > control over HOW the object bends.
So guys, any idea what this equation might look like to have the pink "arm" follow the yellow bending portion? Thanks!
