• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

Aj37

Need help with this vector problem.

8 posts in this topic

An air traffic controller notices two aircraft on his radar screen (x-y plane). The first is at altitude 800 m, horizontal distance 19.2 km, and at 25° south of west. The second aircraft is at altitude (z coordinate) 1100 m, horizontal distance 17.6 km, and 20° south of west. What is the distance between the two aircraft? (Place the x axis west, the y axis south, and the z axis vertical). The correct answer is 2285 and I am using the distance formula but I am missing something because I keep getting 8708. I am using this formula d=squareroot((x1-x2)^2+(y1-y2)^2+(z1-z2)^2) z1 = 800 z2 = 100 x1 = 19200sin(25) = 8114 x2 = 17600cos(20) = 16538 y1 = 19200sin(25) = 8114 y2 = 17600sin(20) = 6019
0

Share this post


Link to post
Share on other sites
Shouldn''t everything be (x2-x1)2 and so forth?
-------------
-WarMage
...mmm operational precedence...
0

Share this post


Link to post
Share on other sites
NewsLetter, Safelist and Discussion List Hosting for only a $30 fee. You can setup one on your private servers with NO HASSLE for you. We maintain all the details and your data is backed up multiple times daily.

PlanetXMail.com
0

Share this post


Link to post
Share on other sites
quote:
Original post by WarMage
Shouldn''t everything be (x2-x1)2 and so forth?



Order doesn''t matter because of the square. Take 2 and 5 for example

(2-5)2 = (-3)2 = 9
(5-2)2 = ( 3)2 = 9
0

Share this post


Link to post
Share on other sites
Check the API for the cos and sin functions and make sure they take degrees and not radians. Otherwise you''ll have to multiply the degree angles by PI/180 before calculating the sin and cos values. I think.

Good luck.
0

Share this post


Link to post
Share on other sites
x1 = 19200COS(25) = 17401

------------------------------------------------------
Cuando miras al abismo el abismo te devuelve la mirada.
F. Nietzsche
0

Share this post


Link to post
Share on other sites
First you need to use your magnatude of components equations
x1 = C * cos(angle)
y1 = C * sin(angle)

so....
x1 = 19200 * cos(25) = 17401
y2 = 19200 * sin(25) = 8114
z1 = 800m <----- leave that as 800 meters
x2 = 17600 * cos(20) = 16538
y2 = 17600 * sin(20) = 6019
z2 = 1100m


Next you need to do is subtract your vectors

simply put.... x2 - x1 = xT = -863
y2 - y1 = yT = -2095
z2 - z1 = zT = 300

Then you would use your distance equation:
D=SqrRoot(xT^2 + yT^2 + zT^2)
D=2285

Hope that helps
-Ian
0

Share this post


Link to post
Share on other sites
I''m closing this thread and several others because the question appears to be a school homework assignment from a math class. The purpose of homework is to teach students to build their comprehension of a subject and their problem-solving skills, possibly with the assistance of other students in the same class or teachers of the class. Especially for math problems such as the one posed here, it is absolutely NOT appropriate to seek the answers from folks outside one''s class or school.

These forums are to be used for assistance in game development activities only.

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
0

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.