You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Status: Offline
Joined: Jun 08, 201410Year Member
Posts: 9
Reputation Power: 2
iZoobzy wroteBithax 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
- 0useful
- 0not useful
#12. Posted:
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.
- 0useful
- 0not useful
#13. Posted:
Status: Offline
Joined: Jun 21, 201410Year 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
- 0useful
- 0not useful
#14. Posted:
Status: Offline
Joined: Jun 21, 201410Year Member
Posts: 23
Reputation Power: 0
I'm going to be adding another floor to the base soon
- 0useful
- 0not useful
#15. Posted:
Status: Offline
Joined: Jun 12, 201311Year Member
Posts: 1,076
Reputation Power: 44
Pretty awesome TU8 sky base bro. Looks awesome
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.