generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Java Collision Detection

Previous Thread :: Next Thread 
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
21 Sep 2015 09:39 PM
Was wondering if any of you kind gentlemen/ladies are experienced with 2 dimensional collision detection using only java default libraries?

I've been trying at it for a few days now, and am slowly losing my mind.

Mainly been trying detecting what objects are near the player and then setting their gravity and xPos and all that crap accordingly.

Anyone have some wisdom to impart?

Much love -GO
Report Abuse
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
21 Sep 2015 09:49 PM
Plump

Much love -GO
Report Abuse
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
21 Sep 2015 09:57 PM
I suppose not then :P

Much love -GO
Report Abuse
Rocketerkid is not online. Rocketerkid
Joined: 10 Oct 2011
Total Posts: 1237
21 Sep 2015 10:00 PM
Try to understand the logic of this, not the Lua part of it.

Hopefully this will help you understand.

http://wiki.roblox.com/index.php?title=GUI_Collision_Tutorial
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
21 Sep 2015 10:27 PM
Search up collision formulas
Report Abuse
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
21 Sep 2015 10:28 PM
@Rocket

I've tried that one before, but the problem then occurred with gravity. It would constantly being moving down unless it intersected, and so it would constantly spasm barely in and out of the intersected rectangle.

@boss

I've looked up quite a lot, but have been unable to comprehend most of them whether my own fault or the writers.

Much love -GO
Report Abuse
Rocketerkid is not online. Rocketerkid
Joined: 10 Oct 2011
Total Posts: 1237
21 Sep 2015 10:35 PM
I made an example of this once...
I'm not certain how well it worked.

www.roblox.com/games/213391527/Rocketerkids-Place-Number-22

Feel free to look at the code in it. I haven't touched it since the day I made it- that was quit some time ago so I know the coding is terrible.

I tried to make everything happen on a micro scale, but quickly.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image