Physikfragen

Previous topic - Next topic

Schranz0r

Argh..... vergessen :D
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

WPShadow

Guttttt.... Jetzt ist wirklich alles klar! Danke! *ggg*

PS.: tz tz tz, Schranzi, du läßt doch nicht etwa nach, oder? *lol*
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

BumbleBee

Quote from: WPShadowtz tz tz, Schranzi, du läßt doch nicht etwa nach, oder? *lol*
Ja, mit so kleinen Aussetzern fings bei mir auch an. ;)

Cheers
The day will come...

CPU Intel(R) Core(TM) i5-3570k, 3.4GHz, AMD Radeon 7800 , 8 GB RAM, Windows 10 Home 64Bit

Schranz0r

BOAHHHHHHHHHH :D

5 Trilliarden Abmahnungen :D *Böseguck*

;)
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

WPShadow

Hi!

Ich habe hier mal wieder eine Frage:

Wie bekomme ich am Besten hin, daß ich X, Y und Z - Koordinate zuweisen kann?

Ich dachte an sowas wie:

NewtonBodySetX (als Kontrast zu NewtonBodyGetX)

aber irgendwie bekomme ich das alleine nicht hin!

Kann mir da jemand helfen?

Gruß

W.

PS.: Schönen Fasching - Dienstag!!! =D
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Kitty Hello

Äh... das ist in der aktuellen Newton.gbas drin, oder!?

WPShadow

Zumindest hätte ich es noch nicht gefunden! Bloß

NewtonBodyGetX

um die Position zu kriegen, aber nicht

NewtonBodySetX

um auf die entsprechende Position zu setzen...
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

WPShadow

Hab gerade NewtonSDK durchsucht, aber leider nichts gefunden, das mit NewtonBodySetX vergleichbar wäre.

Und das Problem ist, daß ich das mit der Matrix nicht ganz hinbekomme...
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Kitty Hello

netwonbodygetmatrix(body, mat[])
mat[12] = x
newtonbodysetmatrix(body, mat[])

Schranz0r

das hatten wir doch erst!

Wenn du mal bei einen Thread bleiben würdest, hättest du das gesehen:


Code (glbasic) Select
FUNCTION NewtonBodySetPositionX: body_index, posX
LOCAL mat[]
    NewtonBodyGetMatrix(body_index,mat[])
    mat[12] = posX
    NewtonBodySetMatrix(body_index,mat[])
ENDFUNCTION

FUNCTION NewtonBodySetPositionY: body_index, posY
LOCAL mat[]
    NewtonBodyGetMatrix(body_index,mat[])
    mat[13] = posY
    NewtonBodySetMatrix(body_index,mat[])
ENDFUNCTION

FUNCTION NewtonBodySetPositionZ: body_index, posZ
LOCAL mat[]
    NewtonBodyGetMatrix(body_index,mat[])
    mat[14] = posZ    
    NewtonBodySetMatrix(body_index,mat[])
ENDFUNCTION
@ Gernot:

Wolltest du das nicht mit in Newton einbauen, beim nächsten Update?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

WPShadow

Habe es gestern Nachmittag doch noch gefunden!

NewtonBodySetPosition(body_index, x, y, z)

Entschuldigung! Hatte nicht gründlich genug gesucht...
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard