| | |
Code for moving
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2008
Posts: 3,813
Reputation:
Solved Threads: 501
•
•
•
•
Can any one please assist with code for two objects coming from different direction. Subsequently, collide after intersection. The objects should be moving at 80km/h. And collision should happen shortly 30 minutes after take off
That's a program with many parts. You need to provide much more information. Is this a console application or a GUI? What do the objects look like? What does 80 km/h mean in relation to the computer screen (i.e. what is the distance in kilometers of the computer screen width)? And many other details. You need to decide with much more specificity what you want, tell us what you know how to do already, and post at least an attempt at this.
•
•
•
•
Can any one please assist with code for two objects coming from different direction. Subsequently, collide after intersection. The objects should be moving at 80km/h. And collision should happen shortly 30 minutes after take off
Newton's Law
Conservation of Momentum
(Possible) Conservation of Energy
-You will most definitely need Conservation of Momentum since during the collision, there's no telling how much energy is lost from heat due to air resistance/crumpling. The first two laws should be a good start.
Also, what is the angle of misdirection? I have a program that can solve these kinds of problems but its written in Java.
Last edited by Alex Edwards; Jun 22nd, 2008 at 2:28 pm.
•
•
Join Date: Jan 2008
Posts: 3,813
Reputation:
Solved Threads: 501
•
•
•
•
This sounds like a physics problem with elements of-
Newton's Law
Conservation of Momentum
(Possible) Conservation of Energy
-You will most definitely need Conservation of Momentum since during the collision, there's no telling how much energy is lost from heat due to air resistance/crumpling. The first two laws should be a good start.
Also, what is the angle of misdirection? I have a program that can solve these kinds of problems but its written in Java.
![]() |
Similar Threads
- Code for Image Processing (C)
- Help faulty pic16f84 assembly code. (Assembly)
- Can't dispose my dialog after moving it using swing timer (Java)
- boundary code (VB.NET)
- Problem with moving integers to a single formatted string (C)
- Need Help Moving cards on solitaire (Java)
- code conversion from c\c++ to java (C++)
Other Threads in the C++ Forum
- Previous Thread: Trying to make a VERY Simple program & having trouble.
- Next Thread: Trying to use the "if" function
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






