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.

DarkBASIC Professional Discussion / Newton Buoyancy help

Author
Message
Naesa
20
Years of Service
User Offline
Joined: 21st Dec 2005
Location: Sweden
Posted: 4th May 2011 12:32
Hi guys,

I need some help with the Newton buoyancy plane settings.
Do any one know how to set the height for the buoyancy plane?
I'm afraid I'm a bit too thick to figure out the equation needed for this.

As it says in the newton documentation;
"
normal vector (nx, ny, nz)
point in plane (x,y,z)
general equation: nx*x+ny*y+ nz*z+d=0

solve for d:
d = (nx*x + ny*y + nz*z) * -1

plug in this equation to solve for d. then fill temp vector 1 like so: NDB_SetVector nx#, ny#, nz#, d#
"

Seems simple enough for a bright person. I can't figure it out at all
Let's say I want the plane pointing up at x:0, y:-300, z:0. How do I do this?

Any help is appreciated.
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 5th May 2011 01:49
The equation of a plane is:
nx*x+ny*y+nz*z+d=0

The plane should point up so:
nx = 0
ny = 1
nz = 0

Substitute in:
0*x+1*y+0*z+d=0
y+d=0
d=-y
d=300

[b]
Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 5th May 2011 02:27
The kicker is, all you're saying is

y=-300



Tell me if there's a broken link to images in a thread I post, and I'll fix 'em.
Naesa
20
Years of Service
User Offline
Joined: 21st Dec 2005
Location: Sweden
Posted: 5th May 2011 11:29
As I said, simple enough for a bright person
Thanks a bunch, Diggsey!

NeuroFuzzy: d'oh

Login to post a reply

Server time is: 2026-07-10 16:13:07
Your offset time is: 2026-07-10 16:13:07