Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

waiting for each other  RSS feed

 
Rizvan Asgarov
Ranch Hand
Posts: 462
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

How to wait them when moving objects (cars) crossed each other when enter to the same coordinates?



Thanks in advance,
Rizvan
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12141
255
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, but I don't really understand your question. Are you asking:
  • how to detect a collision?
  • how to pause one vehicle or the other so the collision doesn't occur?
  • how to process the collision?
  • something else?
  •  
    Rizvan Asgarov
    Ranch Hand
    Posts: 462
    IntelliJ IDE Java Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you very much Andrew, for your beautiful expressions...

    And sorry that related to my mixing English.

    I think, how to pause one vehicle or the other so the collision doesn't occur? question is more appropriate.
    Also i mean after doing pause again that vehicle needs to be continue.

    Please help if you get time...
    Thanks in advance,
    Rizvan
     
    S Majumder
    Ranch Hand
    Posts: 349
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Rizvan ,
    You can use the java's build in Lock mechanism by which it can be possible to avoid the collision .

    Satya
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!