How can i get the distance between 2 bodies with xui2d?
Knoppi Active Member Licensed User Longtime User Dec 20, 2018 #1 How can i get the distance between 2 bodies with xui2d?
Gunther Active Member Licensed User Longtime User Dec 20, 2018 #2 Body worldcenters distance or outline closest distance?
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2018 #3 B4X: Dim v As B2Vec2 = bw1.Body.WorldCenter.CreateCopy v.SubtractFromThis(bw2.Body.WorldCenter) Log(v.Length)
B4X: Dim v As B2Vec2 = bw1.Body.WorldCenter.CreateCopy v.SubtractFromThis(bw2.Body.WorldCenter) Log(v.Length)
Knoppi Active Member Licensed User Longtime User Dec 20, 2018 #4 sorry i don't know the difference this is my veryfirst try with games i need: middle body1 to middle body2
sorry i don't know the difference this is my veryfirst try with games i need: middle body1 to middle body2
Knoppi Active Member Licensed User Longtime User Dec 20, 2018 #5 thank you Erel this looks what i am searching for
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2018 #6 BTW, always use CreateCopy when you modify a vector that you haven't created yourself.