You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Bithax
  • New Member
Status: Offline
Joined: Jun 08, 20149Year Member
Posts: 9
Reputation Power: 2
Status: Offline
Joined: Jun 08, 20149Year Member
Posts: 9
Reputation Power: 2
iZoobzy wrote
Bithax wrote Looks pretty cool, you should also add interactive items. Can easily be done by a simple distance check (less than 50 is pretty much right on top)


float Distance(float*v1, float*v2, bool sq=false)
{
 float length;
 (!sq ? length = sqrt((v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1])+(v1[2]-v2[2])*(v1[2]-v2[2])) : length = (v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1])+(v1[2]-v2[2])*(v1[2]-v2[2]));
 return length;
}

float Distance2D(float*v1,float*v2,bool sq=false)
{
 float length;
 (!sq ? length = sqrt(((v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1]))) : length = ((v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1])));
 return length;
}


I wrote them both up while ago, the 2D is pretty obvious on what it would be used for. (same distance check, just excluding the z origin (up/down))


Thanks for you for your input Bithax


No problem, need help hmu on skype byjxsqr
#12. Posted:
Adamu
  • Supporter
Status: Offline
Joined: Feb 02, 201311Year Member
Posts: 5,477
Reputation Power: 335
Status: Offline
Joined: Feb 02, 201311Year Member
Posts: 5,477
Reputation Power: 335
That's a really nice skybase bro keep the good work up.
#13. Posted:
iZoobzy
  • New Member
Status: Offline
Joined: Jun 21, 20149Year Member
Posts: 23
Reputation Power: 0
Status: Offline
Joined: Jun 21, 20149Year Member
Posts: 23
Reputation Power: 0
Monster-Munch wrote That's a really nice skybase bro keep the good work up.


Thanks monster the support goes a long way
#14. Posted:
iZoobzy
  • New Member
Status: Offline
Joined: Jun 21, 20149Year Member
Posts: 23
Reputation Power: 0
Status: Offline
Joined: Jun 21, 20149Year Member
Posts: 23
Reputation Power: 0
I'm going to be adding another floor to the base soon
#15. Posted:
Tang
  • TTG Senior
Status: Offline
Joined: Jun 12, 201310Year Member
Posts: 1,076
Reputation Power: 44
Status: Offline
Joined: Jun 12, 201310Year Member
Posts: 1,076
Reputation Power: 44
Pretty awesome TU8 sky base bro. Looks awesome
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.