﻿ Axe Q&A
20 May, 2013, 00:08:47
 OmnomIRC You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

 Pages: 1 ... 83 84 [85] 86 87 ... 110   Go Down
 Author Topic: Axe Q&A -  (Read 59365 times) 0 Members and 1 Guest are viewing this topic.
Darl181
Vy'o'us pleorsdtu tlh'e gjaemue.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)

Online

Gender:
Date Registered: 10 June, 2010, 00:32:08
Location: {I*9+L₁+1},{I*9+L₁+3}
Posts: 3272

Total Post Ratings: +267

 « Reply #1260 on: 22 December, 2011, 06:04:36 » 0

Ok I'm trying to figure out how to do angles.
What I'm thinking of is if some value is, say, 64 (the 256-degree equivalent of 90 degrees), it sets the x-velocity to the max and y-velocity to 0.  If that value is 128 it should set the y-vel to the max, x-vel zero, etc.

How would I go about doing this?

.A is angle, 256 degrees
.M is max velocity
cos(A)*2**M→(x-vel)

Then determine Y-velocity based on that.
 « Last Edit: 22 December, 2011, 06:31:31 by Darl181 » Logged

Spoiler for Stuff:
 OS 2.43  Boot 1.02  Hardware Rev. BOS 1.04.32OS 3.1.0.392  Boot1 3.0.99  Boot2 3.10.16
Spoiler for Misc:
Quote
You'll understand / It's not a shame / To be always / Losing the game / Burma-Shave
 Draw with sand.  Yay?The GameZombo.comlight post color is #dfefffdark post color is #cae4ffquote box color is #6699fftransparent color is...transparent 0.o
Spoiler for Forum search alternative (bookmarklet):
https://www.squarefree.com/bookmarklets/search.html