Leonidas hat geschrieben:
Die einzigen Links die ich posten könnte sind die zur Dokumentation und den Tutorials.
ja z.B.
wer nett wenn du sie mal posten würdest
aber schaut mal bitte hier ....
Code: Alles auswählen
import ode
# Create a world object
world = ode.World()
world.setGravity( (0,-9.81,0) )
# Create a body inside the world
body = ode.Body(world)
M = ode.Mass()
M.setSphere(2500.0, 0.05)
M.mass = 1.0
body.setMass(M)
body.setPosition( (0,2,0) )
body.addForce( (0,200,0) )
# Do the simulation...
total_time = 0.0
dt = 0.04
while total_time<2.0:
x,y,z = body.getPosition()
u,v,w = body.getLinearVel()
print "%1.2fsec: pos=(%6.3f, %6.3f, %6.3f) vel=(%6.3f, %6.3f, %6.3f)" % \
(total_time, x, y, z, u,v,w)
world.step(dt)
total_time+=dt
is jetzt aus den links von querdenker genommen
wenn ich das in mein python einfüge und laufen lassen will gibt er das hier aus :
Code: Alles auswählen
Traceback (most recent call last):
File "xxx
import ode
ImportError: No module named ode
meine frage is wo krieg ich sowas her damit das programm läuft bzw. wie kann ich python beibringen wo es das ode modul herbekommt
das will ich erstmal verstehen um überhaupt mit dem programmieren anzufangen
weil was bringt es wenn dann immer ein Import Error kommt
ich hoffe ihr versteht was ich meine .....