Jump to content

Search the Community

Showing results for tags 'multiple forces'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi! How do you build a rectangle shaped (2:1) ship that has two motors? Imagine a ship splitted half (2 x 1:1) and one motor is placed in the center of tail and the other one is in the center of the nose. You can see the ship top-down and rotate and thrust these motors with two virtual joysticks, one for each motor. I'm new to game developing, Phaser and physics engines, but I'm not asking ready code from you. I'm just not sure what are the ingredients that should be used to build the ship and I don't want to hack something ridicilous. I think I should P2 as my physics engine. Then I think I could start by creating a ship's tail as a square and somehow attach a rotatable motor in the center of it. Now, if I played with just this half of the ship, the ship itself wouldn't rotate and the rotated motor just moved the (half of the) ship around the world. However, if I created the nose in the same way and attached the nose to the tail with some magic glue, maybe the whole ship started to act more like a real ship, right? I did some tests with different constraints between two sprites and they locked well with each other using As nothing seemed to work as supposed, I started to play with springs and even though I might be able to hack it together using very stiff springs, it felt so wrong and performance unwise. If that above has any sense: - How do I attach a rotatable motor in center of square? - What is the magic glue that should be used to attach the tail to the front? Now I realized that I don't really understand the point in splitting the ship half. I think it came from my original idea that I wouldn't use separate motors, but just control some force vectors on the both halfs. :] Also, feel free to point me to all the threads that has already answered to similar problem. I did search, but I think I don't know the right search terms. Thanks, cheers.
×
×
  • Create New...