Aligning an entity to my verlet construct.

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I had the same problem a while ago , and i solved it by using a center verlet and 2 other auxiliary verlets ,and then alligntovector
			For cc.construct = Each construct    ;<- PROBLEM?
			If cc\stopped = 0 Then
				PositionEntity cc\m_cg,EntityX(cc\v[0]\m,True),EntityY(cc\v[0]\m,True),EntityZ(cc\v[0]\m,True)
				x#=EntityX(cc\x1[1]\m)-EntityX(cc\v[0]\m) 
				y#=EntityY(cc\x1[1]\m)-EntityY(cc\v[0]\m) 
				z#=EntityZ(cc\x1[1]\m)-EntityZ(cc\v[0]\m) 
				AlignToVector cc\m_cg, x#, y#, z#, 2 

				x#=EntityX(cc\x2[1]\m)-EntityX(cc\v[0]\m) 
				y#=EntityY(cc\x2[1]\m)-EntityY(cc\v[0]\m) 
				z#=EntityZ(cc\x2[1]\m)-EntityZ(cc\v[0]\m) 
				AlignToVector cc\m_cg, x#, y#, z#, 3
			End If
			Next



cc\v[0] - center verlet
cc\x1 and cc\x2 - aux verlets
cc\m_cg - object