Unreal Tournament 2003/2004 > Tutorials

UScript 3D Bounding Boxes

(1/3) > >>

lien:

--- Quote from: XfinitY ---This will be in XfinityBot v2 but i figured i would share it with the community.
Will work as is for UT2k4 and 2k3 may need to modify how the line is drawn on the canvas for other versions.


--- Code: ---function Draw3DBoundingBox(Pawn Target, Canvas Canvas)
{
local vector Front, Back, FTL, FTR, FBL, FBR, BTL, BTR, BBL, BBR;
local vector cFTL, cFTR, cFBL, cFBR, cBTL, cBTR, cBBL, cBBR;

//Set Front and back vectors to the targets location
   Front = Target.Location;
   Back  = Target.Location;
   //Adjust X Axis for front and back
   //When refering to the X axis of a vector, think of moving forward and backward in game
   Front.X -= Target.CollisionRadius;
   Back.X  += Target.CollisionRadius;

//Assign Front vars to the front vec, and back to back vec
FTL = Front;
   FTR = Front;
   FBL = Front;
   FBR = Front;
   BTL = Back;
   BTR = Back;
   BBL = Back;
   BBR = Back;

//Adjusting for outer bounds of the box
//Y and Z axis
//Y gives us our left and right boundries
//and Z gives us top and bottom
FTL.Y -= Target.CollisionRadius;
FTR.Y += Target.CollisionRadius;
FBL.Y -= Target.CollisionRadius;
FBR.Y += Target.CollisionRadius;
FTL.Z += Target.CollisionHeight;
FTR.Z += Target.CollisionHeight;
FBL.Z -= Target.CollisionHeight;
FBR.Z -= Target.CollisionHeight;

BTL.Y -= Target.CollisionRadius;
BTR.Y += Target.CollisionRadius;
BBL.Y -= Target.CollisionRadius;
BBR.Y += Target.CollisionRadius;
BTL.Z += Target.CollisionHeight;
BTR.Z += Target.CollisionHeight;
BBL.Z -= Target.CollisionHeight;
BBR.Z -= Target.CollisionHeight;

//Now we get our vector locations on the canvas
cFTL = WorldToScreen(FTL);
   cFTR = WorldToScreen(FTR);
   cFBL = WorldToScreen(FBL);
   cFBR = WorldToScreen(FBR);
   cBTL = WorldToScreen(BTL);
   cBTR = WorldToScreen(BTR);
   cBBL = WorldToScreen(BBL);
   cBBR = WorldToScreen(BBR);

   //Front Box
   vDrawLine(cFTL, cFTR, Canvas);
   vDrawLine(cFTL, cFBL, Canvas);
   vDrawLine(cFBL, cFBR, Canvas);
   vDrawLine(cFBR, cFTR, Canvas);
//Rear Box
vDrawLine(cBTL, cBTR, Canvas);
   vDrawLine(cBTL, cBBL, Canvas);
   vDrawLine(cBBL, cBBR, Canvas);
   vDrawLine(cBBR, cBTR, Canvas);
   //Connecting Lines
   vDrawLine(cFTL, cBTL, Canvas);
   vDrawLine(cFTR, cBTR, Canvas);
   vDrawLine(cFBL, cBBL, Canvas);
   vDrawLine(cFBR, cBBR, Canvas);
}
function vDrawLine(vector start, vector end, Canvas Canvas)
{
XfinityController.myHUD.StaticDrawCanvasLine(Canvas, Start.X, Start.Y, End.X, End.Y, Canvas.DrawColor);
}
--- End code ---

Preview:
http://a.imageshack.us/img801/3066/shot00021h.png

--- End quote ---

xdemic:
does any1 have a copy of the old xfinity bot?

FrankJScott:
For the lady inquiring about easiest crypto app, sun crypto app is safe or not, exodus crypto app, ecuador bitcoin app, pakistan bitcoin app, bitcoin app in canada,  I highly suggest this updated crypto wallet app link or top 10 crypto mining app for android, rainbow crypto app, bitcoin wallet java app, crypto app huawei, best app to buy bitcoin in jordan, bitcoin app legit, and don't forget this top cryptocurrency wallet app forum alongside all is bitcoin app 360 legit, bitcoin app 360 tesla, bitcoin app for usa, crypto app pro, top 5 crypto apps, bitcoin app used in mexico, and don't forget this top crypto wallet app info which is also great. Also, have a look at this top cryptocurrency wallet tips alongside all best crypto app in japan, crypto app malaysia, technical analysis crypto app, (9 9) crypto, nexo crypto app, bitcoin app review, and don't forget this new cryptocurrency wallet details with apple watch crypto app, crypto app uk, what is crypto app, most popular bitcoin app, best bitcoin app in india quora, crypto app name ideas,  for good measure. Check more @ Great RTP slot Site 21259cb

SliG:

--- Quote from: FrankJScott on January 31, 2023, 05:57:02 PM ---For the lady inquiring about easiest crypto app, sun crypto app is safe or not, exodus crypto app, ecuador bitcoin app, pakistan bitcoin app, bitcoin app in canada,  I highly suggest this updated crypto wallet app link or top 10 crypto mining app for android, rainbow crypto app, bitcoin wallet java app, crypto app huawei, best app to buy bitcoin in jordan, bitcoin app legit, and don't forget this top cryptocurrency wallet app forum alongside all is bitcoin app 360 legit, bitcoin app 360 tesla, bitcoin app for usa, crypto app pro, top 5 crypto apps, bitcoin app used in mexico, and don't forget this top crypto wallet app info which is also great. Also, have a look at this top cryptocurrency wallet tips alongside all best crypto app in japan, crypto app malaysia, technical analysis crypto app, (9 9) crypto, nexo crypto app, bitcoin app review, and don't forget this new cryptocurrency wallet details with apple watch crypto app, crypto app uk, what is crypto app, most popular bitcoin app, best bitcoin app in india quora, crypto app name ideas,  for good measure. Check more @ Great RTP slot Site 21259cb

--- End quote ---

gagagagagagagaggadadadadaddadad adadadadadadbababababababababababbababbababaabaadadafgagagagagagaa dadadadadada

FrankJScott:
To the people asking about free unzip software for windows, iobit uninstaller 10 key free, sandboxie free, visio like free software, download iobit uninstaller 10 pro, iobit uninstaller free download for windows 10,  I highly suggest this listen to this podcast about download windows programs free url or registry cleaner for windows 10 free download, download sandboxie 32 bit, powerpoint certification, top useful software for windows 10, iobit uninstaller free download for windows 7 64 bit, online free youtube downloader for windows 7, as well as this next page about download windows programs free info not to mention microsoft student partner program, your uninstaller free download, zip program free download windows 10, rar file open software free download for windows 10, microsoft powerpoint certification, bmcc microsoft office, and don't forget this on bing on microsoft programs torrent tips which is as good as free word processor for mac, windows 10 best software download, software like ms office, utoronto microsoft office, ms excel class, microsoft access specialist, . Also, have a look at this published here on windows programs for free details on top of program download for pc, powerpoint certification, microsoft advanced excel certification, free unzip app for pc, software to open rar file in windows 10, ms hup, as well as this source on windows software pc link on top of octave software free download for windows 10, free word processor software, word processing program, ms partner program, useful software for pc free download, free microsoft word program, as well as these details on microsoft programs crack details which is also worth a look not to mention freeware software for pc, snip it program download, microsoft office employee discount, useful software for pc windows 10, office 365 developer program, free word processor for windows,  also. I also suggest this visit website about windows programs for free advice on top of windows hup, bmcc microsoft office, free word program for windows, microsoft excel specialist certification, winrar software free download 32 bit, python onenote, on top of this get more info about windows programs for free tips and don't forget word program for windows 10, ashampoo 6 key download for pc, ms access program, revo uninstaller pro 4 download, excel certification cost, python onenote, on top of find for download microsoft programs free info as well as wise uninstaller free, download sandboxie windows 10 64 bit, microsoft programs for mac, free program to open excel files, microsoft office certification, microsoft csp partner, which is also great. Finally, have a look at this helpful site for windows software blog with free program like winzip, microsoft office 2010 x86, free cleanup software for windows 10, mos excel certification cost, free zip program for windows 7, free unzip software for windows 10,  for good measure. Check more @ Top Advice For Picking UK Garden Tools ea31_97

Navigation

[0] Message Index

[#] Next page

Go to full version