Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - semi real box

Author
Message
noobnerd
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 9th Feb 2012 21:24 Edited at: 13th Feb 2012 16:45
ok so i just had a physics course at school and folllowing it i made this semi real box physics program.

it is quite simple, there is a box which you can shoot at and it will react to your shots.

press leftmouse to set a shooting location and then rightmouse to aim and shoot.

the code uses some vectormath and a quite usefull ( maybe not the fastest one ) function to determine if a point is inside a rotated box.

it requires Matrix utils and advanced2d plugins. both are optional so if you really dont want do download them you can replace the functions.

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 13th Feb 2012 03:31
Quote: "noobnerd"


the name says it all

EDIT

or did I miss something?

noobnerd
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 13th Feb 2012 15:16 Edited at: 13th Feb 2012 16:48
sorry i didnt quite get that?
is it a compliment a joke or are you mocking me?

EDIT - got it now
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Feb 2012 15:40
I'm going to pretend that I came in here, and you had included the code snippet... I think that's what MrV is driving at - you haven't included the code snippet your talking about

Health, Ammo, and bacon and eggs!
noobnerd
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 13th Feb 2012 16:44 Edited at: 13th Feb 2012 16:47
oh sorry what a failure!

fixed it now
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 13th Feb 2012 16:55
I love talking in code

Login to post a reply

Server time is: 2024-04-19 05:09:52
Your offset time is: 2024-04-19 05:09:52