this is what i have right now, it tells me i can't multiply a vector with a
vector, i have to find a way to multiply the speed with the updated angle
(=hoek in dutch)
code :
from visual import *
import time
import math
import random
class lunar_lander(object):
def __init__(self):
this is again a newer version, right now the velocity does in fact turn, but
the view doesn't follow, it keeps the ship vertical.
i'm also having trouble letting the flame appear when pressing the "up" button
and when the ship rotates the horizontal velocity keeps getting bigger and
bigger
i a
corrected a bit, loop works, gas doesn't work
from visual import *
import time
import math
import random
from datetime import datetime
import operator
class lunar_lander(object):
def __init__(self):
scene.title = 'mini star wars'
scene.width = 375
scene.height = 550
ok after another round of reparations, my update works again and it updates the
fuel meter, but i still can't get the view of the spaceship to rotate, for now
only the direction the spaceship accelerates when pressing "up" changes after a
rotation, but the spaceship itself keeps pointing up. Thi
that's probably it, how do i solve it?
--
http://mail.python.org/mailman/listinfo/python-list
hy again,thanx, i updated my code with your more efficient approach :), so that
possibly resolves problem number 2, but still leaves me with problem n°1, my
code is still stuck in the first update of the fuel tank (brandstoftank), for
the sake of your easyness i'll paste the code again
from vi
woow jeezes, thanks for the amazingly fast and detailed response, you guys are
amazing.
let's clear a few things up :
1) points is a module in vpython to make points, the points do in fact appear
although its not really the effect i intended to have, the points are "lined
up" in stead of ran
hy everyone, for my exam this year i had to write a computer game on vpython
(visualpython).we had to make a lunar lander game where the ship drops by
gravity and is able to manouver to safely land on the moon.right now i am
completely stuck on trying to make the visual of the ship rotate.i'm ne