Jump to content

Search the Community

Showing results for tags 'one side'.

  • 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, Im trying to detect collision in p2 from one side (like jumping on top of something) its easy with arcade phisics, but p2 don't have such option, i think. So is there any way to implement this? if not than I was thinking about sticking another invisible body to a side of object and detect collision with that second object instead. But I dont know how to stick other object to first one and I've experimented with RevoluteConstraint to do it but it;s not what I intended. my code: var constraint = game.physics.p2.createRevoluteConstraint(arrow, [20, 5.5 ], arrowTop, [5.5,5.5]); constraint.collideConnected=false; constraint.setStiffness(600); constraint.update();but it behave like two objects on elastic rope so sometimes arrowTop if closer to arrow and sometimes its further . even if I set more stiffness it's bouncing. Is there way to stick two bodies like on glue instead of rope ?
×
×
  • Create New...