Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 726 results for
collision-detection
- Page 1
Collision Detection using Bounding Rectangle method: KineticJS and HTML5
Programming
Game Development
11 Years Ago
by gamingthinktank
Collision
Detection
using Bounding Rectangle method [
Collision
Detection
using Bounding Box method with KineticJS and HTML5](http://www.gamingthinktank.com/2013/07/11/
collision
-
detection
-using-bounding-rectangle-method-kineticjs-and-html5-canvas-tutorial/)
Collision Detection
Programming
Software Development
13 Years Ago
by 24x24
… looked through the pages of threads on
collision
detection
and found nothing to answer my question…. My issue is that I have a
collision
detection
method that should (in theory) work.… += ballRun; ballyCoord += ballRise; } public void
collision
(){ ballPanel.moreBalls(); // A check to make sure …
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
… down, you will see a comment saying "
Collision
detection
" This is my
collision
detection
"ranx" is a random "x… = 50; y1 = y + 8; counter = 0; } [COLOR="Red"]//
Collision
Detection
[/COLOR] if (x1 >= ranx && rany + 50 >…
Re: Collision Detection
Programming
Game Development
15 Years Ago
by emilo35
… lot easier to read. Why not try out radial
collision
detection
? Should look something like this in your case: … example. It has some pros and cons though.
Collision
detection
between an alligator and a flag pole wouldn't… generate very good results with this algorithm. Though,
collision
detection
between a small shuttle craft and a huge planet…
Re: Collision Detection
Programming
Software Development
13 Years Ago
by 24x24
Well I commented out the moreBalls method call in the
collision
detection
and ran only one ball and it produced a nonstop output of Intersection printed to the console. Also I had it printing the array inside of the loop as a check. I still think it is my comparison making going against itself but I don't know how to fix that.
Re: Collision Detection
Programming
Game Development
15 Years Ago
by 0x69
…more interesting to me How you pass objects for
collision
detection
routine ? I'm asking because routine for choosing …which objects to pass into [CODE=c] int
Collision
(CHARACTER* object1, CHARACTER* object2) [/CODE] this function … be that it is more important than
collision
detection
itself. Can you put that routine code here?
Re: Collision Detection
Programming
Game Development
15 Years Ago
by Pynolathgeen
…more interesting to me How you pass objects for
collision
detection
routine ? I'm asking because routine for choosing… which objects to pass into [CODE=c] int
Collision
(CHARACTER* object1, CHARACTER* object2) [/CODE] this function…It can be that it is more important than
collision
detection
itself. Can you put that routine code here?[/…
Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
Hello! I need to get some
collision
detection
going in my code but I have no idea where… (counter == 1) { x1 = 50; y1 = y + 8; counter = 0; } //
Collision
if (x1 == 685 && y1 == 20) { collide = collide + 1…
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
I DID IT!!!!!!!!!!!!!!!!!!!!!! I GOT THE
COLLISION
WORKING!!!! THANK-YOU TO EVEYONE WHO POSTED!! BUT! I'm … done In this thread! I still need to make a
collision
detection
for the player if the monster (When I get it…
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
… mean the monster moving right?) if so, how will the
collision
detection
stop drawing the "dead" monster? If anyone else…
Re: Collision Detection
Programming
Software Development
14 Years Ago
by Ezzaral
And does your teacher have better suggestions for
collision
detection
?
Collision Detection
Programming
Game Development
15 Years Ago
by Pynolathgeen
Hello, I wrote a 2D game with some simple
Collision
Detection
. I used the function IntersectRect() but I think it's …slow. This is the code right now: int
Collision
(CHARACTER* object1, CHARACTER* object2) { D3DXVECTOR3 pos1 = object1->GetPosition(); D3DXVECTOR3…
Collision Detection
Programming
Software Development
18 Years Ago
by balekic
… as programmed the movement of the bat and ball, however,
collision
detection
is kicking my butt. I've looked up sample source…
Collision Detection and Response
Programming
Game Development
12 Years Ago
by Chuckleluck
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.
Collision Detection XNA 4.0
Programming
Software Development
13 Years Ago
by lxXTaCoXxl
I had a small problem with
collision
detection
starting out with XNA 4.0 so I figured I'… a simple snippet that helps with two different types of
collision
detection
; Per-Pixel and Rectangular. To use simply copy and paste…
Re: Collision Detection XNA 4.0
Programming
Software Development
13 Years Ago
by lxXTaCoXxl
…per-pixel is a lot better than rectangular. Rectangular
collision
detection
just checks the location of the object plus it's… channel of greater than 30. Thus creating an actual
collision
, because not all sprites fit their rectangles perfectly. There… are plenty of other ways to detect for
collision
but these two are the most commonly used and …
Collision Detection logic
Programming
Software Development
15 Years Ago
by noey699
I cannot figure out what is wrong with this
collision
detection
code. ballx1 and bally1 is the current position for the … from the step before and the current step for a
collision
to avoid the ball jumping over the paddle. Right now…
Collision Detection - Micro Java
Programming
Software Development
18 Years Ago
by Doops
… array of blocks to appear on the screen. So the
collision
detection
is next. I have tried the following code but the…
Collision Detection in pygame
Programming
Software Development
14 Years Ago
by colts18
Hey guys I cannot figure out how to add
collision
detection
can someone explain how I just want my tank to stop moving when it hits the other tank. Can anyone help? Thanks.
Re: Collision Detection in pygame
Programming
Software Development
13 Years Ago
by woooee
[QUOTE=;][/QUOTE] pygame has
collision
detection
. Google is your friend. Even it you can't find an answer for your specific object, you can see how it is done with other objects.
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
Hello Zabzacon, I too had a problem with my
collision
detection
but it is now fixed. What exactly is supposed to…program (an applet)is a simple if statment for my
collision
detection
. (if the x coord of the player is the same… off screen) But first try making your else if (player.
collision
= true) an if statment. Try that and see if…
Re: Collision Detection
Programming
Software Development
14 Years Ago
by Katana24
Perhaps this website may help you: [URL="http://beginwithjava.blogspot.com/2010/08/simple-
collision
-
detection
-in-java.html"]http://beginwithjava.blogspot.com/2010/08/simple-
collision
-
detection
-in-java.html[/URL] Good Luck
Re: Collision Detection
Programming
Software Development
13 Years Ago
by 24x24
… are in the array. When I comment out the ball.
collision
it prints Intersection constantly and balls are painted on screen…
Re: Collision Detection
Programming
Software Development
13 Years Ago
by mKorbel
1/ your problem is increasing ball by each
collision
, then lots of collisions produce new and new and new balls, really you overkill JVM, 2/ output is because you have to loop inside Array, not pure system.o...(myArray)
Re: Collision Detection
Programming
Software Development
13 Years Ago
by 24x24
… that call out proved the theory somewhat. I changed the
collision
effect to remove the ball that collided and now it…
Re: Collision Detection
Programming
Game Development
15 Years Ago
by Pynolathgeen
…=0x69;1188839]No, I mean code which executes
Collision
() function.[/QUOTE] Its called every time a walk… //handle keys here etc. } [/code] [edit] This is the
collision
function, if you haven't seen it yet [/edit] [code…=C++] int
Collision
(CHARACTER* object1, CHARACTER* object2) { D3DXVECTOR3 pos1 = object1->…
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
I'm sorry... I don't understand.... a list? don't forget I have no idea how to even code any of this "
collision
" I have to do.
Re: Collision Detection
Programming
Game Development
15 Years Ago
by 0x69
…; i < Monsters.size(); i++) if(
Collision
(Monsters.at(i), Player1) == true) Player1->
Collision
[Player1->GetDirection()] = true; //handle keys here…++) { for(/*iterate through all monsters at map_grid[i][j]*/) { if(
Collision
(Monsters.at(currentMonster), Player); // ... do what you like here } } } // only…
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
ok... That solves my speed problem but what about my coliision
detection
problem when you shoot above the monsters. (They "die" like they should if they are [B]hit[/B]!)
Re: Collision Detection
Programming
Software Development
14 Years Ago
by javanoob101
hmmm... Could there be issues with my monster's random X and Y preventing the collison
detection
form ever being true? (as in the bullet's "Y" coord has to equal that of a monsters exact "Y" coord?)
1
2
3
13
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC