Search the Community

Showing results for tags 'applyimpulse'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Platform
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 2 results

  1. Not sure I understand this well. As per my understanding applyImpulse takes two variables The first variable is the direction and amount of impulse to apply. The second is where on the body itself the force will be applied. This as per documentation here Now consider the following example here I am applying a small impulse at the center of sphere and it moves slowly as expected. But now comment line 31 and un-comment line 32 and run. In line 32 I am applying a force at a point which is not on the sphere at all. You would think the sphere would not move at all but instead it does move and moves with high speed. How come?
  2. Hi guys ! I 've tried to add some features to an old PG (that I have just mada for a previous topic); that one : I try to apply an impulse to a sphere that "come out" from the ships (when they reach the island) and hit the target (the cylinder in the middle). It works, but just the for time; instead, I would repeat these applyImpulse on every 1sec (or 2sec), after they reach the island. I try to apply the setTimeout() function, but the result does not work well. Here the other PG (it doesn't work): . So have any idea on how can I do that? Do you think it's the best way? Thank you in advance for your time and patience, cheers