Hello, I don’t understand how I’m supposed to implement steering ?
I tried to understand this guide Understanding Steering Behaviors: Seek but I’m missing something so if someone could confirmate or deny what I understood It would be nice.
In this equation : desired_velocity = normalize(target - position) * max_velocity
target is the checkpoint , position is the pod current position and normalize is a function that calculate the unit vector and max_vel is 100 because it’s the thrust ?
In this equation : steering = desired_velocity - velocity
velocity is the current velocity of the pod, I have a doubt on how to calculate it, for me there is two possibility either it’s the thrust so you calculate it like this :
For the first turn, previous x and previous y are the same as current x and current y, because the pod has not moved.
For subsequent turns, previous x = current x of last turn, previous y = current y of last turn. You may use some variables to store those values yourself.
It’s because at the bottom there is a timer and the timer is set to 1 second. To change it, some reason you have to change the destination for what you set or/and change the thrust.
I don’t quite understand how scoring works. How is my score calculated? It doesn’t seem to simply be the ratio of wins to losses. Also, does it just play 40 matches immediately when you submit and then you have to submit again to play 40 more? I will admit that at first I thought the matches I was watching were going on in real time and was confused as to why I could win a lot in a row without moving up the leaderboard–but from what I can tell they are replays of matches that have already taken place? so is it just 40 matches each time you submit?
Hello! i am trying to calculate my current trajectory angle in contrast to the direction the pod is moving in is there a way i could calculate this?
any help would be much appreciated
Hi, I’ve beaten the boss in Silver league but got stuck there.
I always have the message “you will be promoted to golden league in …” and timer keeps resetting… for more than a day now.
Any clue please?
Thanks.
If you still aren’t promoted after re-submitting your code, write a post in the above thread to let CG know so that they may take action to fix the issue for you.
i’m doint the task now in c++ and i can’t understand, bc i thought it would teach me first about if and else loops. i did it that way, but it also say that i need use cout. i thought that i need use it only, but i still cant finish it. What should i do, if it doesn’t teach…
This website assumes you have basic coding knowledge already. If you don’t, it’s better for you to learn it elsewhere before coming back here to practise.
Hi, do you know why i get an error saying “this.nextAngleCheckpoint is not a function” (currently in Gold) when i continue using the exact same class as my previous code to get Gold and from Bronze to Gold they were no any problem ? This in in JS and both are in the same class.
Part of the code :
Different inputs are provided in Gold league. You have to reset the code to see the new template, or refer to the explanation of what the inputs are in the statement.
I changed it, but i kept the parts that still are useful in this new league. I’m really not sure that it comes from inputs, because these functions only makes calculations to output the speed. I’ve been looking for the problem but they are no problems to me.
So, anyone knows why they change the name from Coders Strike Back to a rather less interesting name Mad Pod Racing? It can’t be copyright strikes right?