Differences between revisions 1 and 2
Revision 1 as of 2012-02-16 03:33:29
Size: 1693
Editor: ip70-173-225-206
Comment:
Revision 2 as of 2012-02-16 22:03:22
Size: 1802
Editor: PaulBoddie
Comment: Fixed/improved formatting.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
==Verables:== == Verables: ==
Line 5: Line 5:
{{{#!python numbers=disable
Line 20: Line 21:
}}}
Line 21: Line 23:
==get values from main app:== == get values from main app: ==
Line 23: Line 25:
{{{#!python numbers=disable
Line 32: Line 35:
}}}
Line 33: Line 37:
==calculate acceleration:==  == calculate acceleration: ==
Line 37: Line 41:
==out put to main app:== == out put to main app: ==
Line 39: Line 43:
{{{#!python numbers=disable
Line 45: Line 50:
}}}

Asking for Help: with newton force calculator

Verables:

N = newton force,
M = Mass,
X = X axis,
Z = Z axis,
Y = Y axis,
YR = Yaw,
PR = Pitch,
RR = Roll,
XA = X axis acceleration,
ZA = Z axis acceleration,
YA = Y axis acceleration,
YRA = Yaw acceleration,
PRA = Pitch acceleration,
RRA = Roll acceleration,
obj = 3D object

get values from main app:

obj_Main.M = 3000 MTons,
obj_thruster is parented to obj_main,
obj_thruster.X = 10,
obj_thruster.Z = 20,
obj_thruster.Y = 30, 
obj_thruster.YR = 90,
obj_thruster.PR = 180,
obj_thruster.RR = 270,
Obj_thruster.N.X = 400 MTons

calculate acceleration:

Need help finding code to go here

the calculator gives me

out put to main app:

obj_main.XA,
obj_main.ZA,
obj_main.YA,
obj_main.YRA, 
obj_main.PRA,
obj_main.RRA

I will run the calculator once for every thruster on the obj. Add them together and get haw the object moves in space. then do it again and add both to see how fast the obj is moving now. And where it has moved to. this way I can set the obj to travel though space in a realistic way not this unrealistic follow the path key framed fashion.

I have tried to find to find the formulas need to due this for days. I'm new to python but the program i'm trying to right this plugin for just started using python and it is simple enough for me to work with. Please please help.

When answering questions, add the CategoryAskingForHelpAnswered category when saving the page. This will move the link to this page from the questions section to the answers section on the Asking for Help page.


CategoryAskingForHelp

Asking for Help/with newton force calculator (last edited 2012-02-16 22:03:22 by PaulBoddie)

Unable to edit the page? See the FrontPage for instructions.