Hi, how can I get back my code submitted to SF2442?
From a mathematical point of view, the angle should have been computed counter clockwise. http://www.mathopenref.com/trigangle.html
[quote=“nautilus_me, post:23, topic:1317, full:true”]
From a mathematical point of view, the angle should have been computed counter clockwise. [/quote]
Not if you want “y” to be +90° from “x”
Do you also have the formula to get next angle please ?
You have 2 angles:
-
The angle the pod is “pointing”:
Final_Angle = Something between Initial_Angle-18 and InitialAngle+18, according to the new point you set. -
The angle the pod is “going”:
You can obtain this angle from vx and vy:
Angle_in_Radian = atan2( vy, vx );
You can calculate v:
v = sqrt ( vxvx + vyvy )
You can decompose the v in vx and vy:
vx = v * cos (angle)
vy = v * sin (angle)
The speed is as I explained before: Final_vx = (Initial_vx + Thrust_vx) * 0,85
The same for vy
I really like doing the puzzles and taking part in the competitions on the site, but I dislike the idea of the need of reverse engineering in this one. It’s basically the same as we’ve had 2 and a half years ago with Supercell’s racing competition. You need a bigger initial time investment in figuring out how the physics work before being able to do any logic, and this is a huge downside. Just my two cents.
Great, thank you. That might be a good idea to add it to the game description.
Hi there! Anyone knows how do collisions work?
Hi,
What is the meaning of vx and vy ?? I mean if it is supposed to be the speed on x and y axis, then why it is often negative?
I think this can help you:
http://www.plasmaphysics.org.uk/programs/coll2d_cpp.htm (code)
http://www.plasmaphysics.org.uk/collision2d.htm (explanation)
Where did you got Thrust_vx ?? We only have Thrust , for example Thrust 200 but we don’t know how 200 is decomposed for Thrust_X and Thrust_Y
now we just need the ball’s mass without and with shield
It’s decomposed according to the angle of the pod (angle the pod is pointing).
thrust_x = thrust * cos( angle_pod_is_pointing );
thrust_y = thrust * sin ( angle_pod_is_pointing );
So, as explained in the expert rules, you have:
- Target: New angle the pod is pointing;
- Thrust: vx = vx + thrust_x & vy = vy + thrust_y
- Movement: x = x + vx & y = y + vy
- Friction: vx = vx * 0.85 & vy = vy * 0.85
- Truncate speed (vx, vy) and Round position (x, y)
They just say: “This will give the pod much more weight”. You may observe/study a collision and deduce the difference.
How does submission work? Can I submit only one solution or can I submit one per language?
I think that you can submit one by language.
I think it’s better to say that you can change your language – but you have just one spot in the leaderboard anyway (your last submission).
Hello.
Could you please fix this bug?
This is annoying because I need to refresh the page one time in five.
Thanks.
is it perfectly elastic collision?
Hello.
A question about checkpoint pass:
What if the pod is out of CP in turn X and out of CP in turn X+1, but the vector of its movement is cross CP area? Is CP checked or it doesn’t?