Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (800)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (867)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  object collisions in space - suggestions  (Read 2086 times)
0 Members and 1 Guest are viewing this topic.
Offline MickeyB

Senior Devvie

my game will work, my game will work!

« Posted 2009-03-13 17:39:01 »

My space trader game is LWJGL 3D, 3rd persion in view (link below or think early Star Trek Starship Battles, camera is up and behind your ship, all ships stay at Y = 0).  When it comes to ship to ship, I currently let them pass through each other.  As for approaching large items (capital ships, star ports, planets, moons, asteroids, etc.) what would you guys suggest as a way to handle when the players ship should stop? 

My thoughts:
1 - When approaching, cause ship to stop at a calculated distance from target.
2 - Alert ship it is getting close, provide range countdown betwen binding spheres and if they collide, do damage.
3 - Cause players ship to "float" up on Y so he is above target, then as you pass binding sphere on other side, lower the ship
4 - ??



Current Project:
Offline Markus_Persson

JGO Wizard

Medals: 19
Projects: 19

Mojang Specifications

« Reply #1 - Posted 2009-03-14 10:12:18 »

Option 3 makes the most sense to me. Space is a 3d environment where it's very easy to dodge other objects. Your game just happens to take place in a (mostly) flat 2d slice of it.
You might get some issues if several ships pass over the same object, though..

Out of #1 and #2, it depends on how much player skill you want there to be in the game. Avoiding collisions near cluttered star bases might be a very exciting experience. I'd suggest adding a purchasable auto pilots that tries to keep you away from other objects. =)

Play Minecraft!
Pages: [1]
  ignore  |  Print  

Riven (349 views)
2019-09-04 15:33:17

hadezbladez (5133 views)
2018-11-16 13:46:03

hadezbladez (2016 views)
2018-11-16 13:41:33

hadezbladez (5400 views)
2018-11-16 13:35:35

hadezbladez (1123 views)
2018-11-16 13:32:03

EgonOlsen (4541 views)
2018-06-10 19:43:48

EgonOlsen (5399 views)
2018-06-10 19:43:44

EgonOlsen (3086 views)
2018-06-10 19:43:20

DesertCoockie (3980 views)
2018-05-13 18:23:11

nelsongames (4530 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!