Hi Guys, Im currantly having a problem with simulating balls bouncing of each other in a 2d space, everything is working and all, but it just doesant seem natural for me... If we had any math wizzes here now is your time please:) my circles are painted inside of rectangles..... This is what is the code im using to find the new x and y coordinates of the circles. specifically this piece here... //Pythagerum theorem, a^2 + b^2 = c^2, to figure out the distance between the two circles' centers. int distance = (int) Math.sqrt(((currantXa - currantXb) * (currantXa - …

Member Avatar
Member Avatar
+0 forum 14

VB.Net never meant for games! it's more recommended for software developement, but hey why not have some fun. If anyone out there is looking to create an Angry Birds Game-like or a Simulator for throwing an object, you've come to the right place, this code will give you great start/push to build your own app. #**Trajectory**# ![dd5f632319f6a4422579ce0a7c3db41e](/attachments/large/4/dd5f632319f6a4422579ce0a7c3db41e.jpg "dd5f632319f6a4422579ce0a7c3db41e") A Trajectory for a projectile have a bunch of formulas, the more equations you use, the more realistic motion you'll get. As a start i used only 3 formulas which they're the essentiel ones,the X and Y coordinates and the angle, containing …

Member Avatar
Member Avatar
+1 forum 2

Saw [this](http://www.daniweb.com/software-development/cpp/code/216430/add-a-little-graphics-to-your-console) and decided to make a little spinoff with some physics of mine. Enjoy!

Member Avatar
Member Avatar
+1 forum 2

Box2D physics engine works according to the rules of physics. You have to work a little bit to set it up to work with platforms like HTML5 Canvas, iOS or Flash. Read the details [Box2d coordinate system for HTML5 Canvas](http://www.gamingthinktank.com/2013/08/12/box2d-coordinate-system-for-html5-canvas/)

Member Avatar
-1 forum 0

Me and my friend are aspiring Indie Game devs. and we're hoping to get some help. As the developer of the duo (him being artwork and music), I need to create a physics engine for the game. I am sure there are some out there, but I think building one will be best for me. If anyone could direct me towards a tutorial, book and/or any learning utility for this project, it will be most appreciated. Though it isn't my first choice, suggestions for 2D/8-Bit physics engines would be great (links, please?). Again, thank you in advance for helping.

Member Avatar
Member Avatar
+0 forum 6

![circuit](/attachments/small/2/circuit.jpg "align-right") Here is a version in Python of program from classic Lisp book (see http://www.daniweb.com/software-development/legacy-languages/code/446235/simple-scheme-functions-for-finding-impedance-for-norvigs-implementation for the details) for calculating impedance of a circuit. (Example circuit with 1MOhm like in the book's code not like in diagram)

Member Avatar
+0 forum 0

Hello, I've been having a lot of trouble with collision detection recently. I'm attempting to make a 2D platformer. All I need is rectangle-on-rectangle collision detection, and then to respond on collision by moving the two rectangles involved in opposite directions. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 10

Hey there, i'm relatively new to pyGame and considering this is like my second attempt at doing it by myself after watching a few tutorials, i'd say im getting the hang of it. However, as i was creating a game i realised i had no clue how to make the objects bounce off eachother and repel. Here is my code so far, i know it doesn't work and i know it seems quite stupid at the end, however i was just trying all sorts of things. My way of interpreting this problem is that if there is an intersection that …

Member Avatar
Member Avatar
+0 forum 3

CERN has just announced that they have detected a new particle consistent with the predicted Higgs boson (a.k.a. "The God Particle"). This is huge! CERN has observed the particle tied to the field that gives everything mass! And its mass is at 125.3 GeV (just shy of 5-sigma confidence). This is a pretty huge day for physics, the culmination of 50 years of work to detect that elusive but extremely massive particle! I just wanted to share this with you guys. Anybody else excited about this? Here are some videos: [Joe Incandela](http://www.youtube.com/watch?v=V5V8V2poJ4Y), [Peter Higgs](http://www.youtube.com/watch?v=L6HyyJcIejU), and [the actual announcement](http://www.youtube.com/watch?v=5Uh1ZiFF2sM).

Member Avatar
Member Avatar
+1 forum 7

I would like to know how to compile the jBullet demos, found here: http://jbullet.advel.cz/download/jbullet-20101010.zip in the eclipse IDE. It seems like it should be a fairly easy but i may be missing some small simple task. If you do know the answer, please be fairly direct and detailed. Thanks!

Member Avatar
+0 forum 0

Hi! On school we got exercise to calculate how much the length of substance grow when we know original length and temperature change. So,the case goes that i have value temperature coefficient of different substances and i have to multiply them. I'd like to it without doing several condition statements. I tried to do a class and function but it didn't work out. Here's the code, and i don't have any clue how to finish it. It should calculate like aluminium*1meter*1celsius and print out answer without using condition statements, but is there a way to do it? [CODE]#-*- coding: cp1252 …

Member Avatar
Member Avatar
+0 forum 4

Hello, I recently took up a challenge to make a full screen pong game in java. So far it is full screen, it does the basics (bouncing off floor/roof/paddles) with a minor point system. I also added support for every 20 seconds it speeds up the ball by 1pixel per 0.05 seconds (50ms is the time I used for an update "delay"), there is also a ball color changer that changes the ball's color randomly every 2 seconds after the 1 minute mark. The 2 mini-challenges have a timer where if one of the 2 paddles misses the ball (aka …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am 16 years old and I wanted to know which science program to take for my last year of high school. (I'm already in high math). Either: -Social science (geography and history) -Pure science (chemistry and physics) That's not all, though. If it were that simple, I would have gone to pure science. My school offers an option course, and this year, they added physics into the mix. My question is: Do I take pure science or social science with physics as an option? If it helps, I'm in Montreal, Quebec, Canada. Thanks a bunch

Member Avatar
Member Avatar
+0 forum 2

hi is there anybody that can help on Havok Physics engine. I want to implement havoks physics into a racing game, at the moment iam keeping it very basic , havok aside i have my car model with joining wheel nodes and body node and a floor for it to drive on, my game runs with an engine provide by my uni and so far i have managed to implement havok into the game (i can drop a cube from height and correct physics are applied). I could do with some help with the vehicle kit and how to start …

Member Avatar
+0 forum 0

Nevermind... fixed it right after posting. Epic. Fail.

Member Avatar
Member Avatar
+0 forum 1

Hi everyone. I have a quick question: Is there anyway that you can check to see if a point lays on an Arc2D object? I'm trying to write a Physics library (or at least part of one), and I noticed that there is no method that does it. You can check to see if the point is inside the [I]curve[/I], but that's not what I need. Is there a class that does that kind of math for you, or will I have to figure it out myself. Which brings me to: Can you retrieve an Array the points that are …

Member Avatar
Member Avatar
+0 forum 2

When it was reported this week that [URL="http://www.itwire.com/content/view/20747/1066/"]Professor Stephen Hawking[/URL] had been taken into hospital and was "very ill" the overall mood of the media seemed to be that the Lucasian Professor of Mathematics at Cambridge University and author of the best selling 'A Brief History of Time' book was as good as dead. Indeed, many of those reports read more like obituaries than anything else. However, I am glad to say that [URL="http://www.telegraph.co.uk/news/uknews/5193802/Family-of-Stephen-Hawking-hopeful-of-full-recovery-after-hospital-admission.html"]the truth is now emerging[/URL] and it would appear that far from being at death's door, Professor Hawking is actually in a comfortable condition and according to …

Member Avatar
Member Avatar
+0 forum 1

With all the disscussion about classical computing issues on Daniweb, I thought it was time for an explanation of quantum computing. As I'm sure most of you are aware, a conventional CPU performs operations by switching transistors on and off in order to manipulate values stored on registers. The registors are of course collections of transistors themselves. Most of the groundwork needed to develop the transistor required an understanding of quantum mechanics, in order to understand how electrons behave on small distance scales in semiconductors. What quantum mechanics says about electrons is that on small scales they behave more like …

Member Avatar
Member Avatar
+0 forum 1

The End.