Aligning an entity to my verlet construct.

Blitz3D Forums/Blitz3D Programming/Aligning an entity to my verlet construct.

ghostdag,

thanx for the code. I have to figure out what the construct is, but, I'm sure that i can.
For construct.construct = Each construct    ;<- PROBLEM?
	If not construct\stopped

		PositionEntity construct\entity%,EntityX(construct\v[0]\pivot%,True),EntityY(construct\v[0]\pivot%,True),EntityZ(construct\v[0]\pivot%,True)
		x#=EntityX(construct\x1[1]\pivot%)-EntityX(construct\v[0]\pivot%) 
		y#=EntityY(construct\x1[1]\pivot%)-EntityY(construct\v[0]\pivot%) 
		z#=EntityZ(construct\x1[1]\pivot%)-EntityZ(construct\v[0]\pivot%) 

		AlignToVector construct\entity%, x#, y#, z#, 2 
		x#=EntityX(construct\x2[1]\pivot%)-EntityX(construct\v[0]\pivot%) 
		y#=EntityY(construct\x2[1]\pivot%)-EntityY(construct\v[0]\pivot%) 
		z#=EntityZ(construct\x2[1]\pivot%)-EntityZ(construct\v[0]\pivot%) 

		AlignToVector construct\entity%, x#, y#, z#, 3
	End If
Next