Jump to content

Search the Community

Showing results for tags 'removeFixture'.

  • 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. I have a R.U.B.E. loaded body containing two fixtures. One is named square, the other is named circle. How can I remove the square fixture with code? I'm trying to create a block that turns into a wheel when clicked on and starts rolling. I am getting the body using game.physics.box2d.getBodiesAtPoint(x, y), but can't figure out how to target the fixture and remove it. bodiesUnderMouse.removeFixture('square') or bodiesUnderMouse.removeFixture(0) results in TypeError: a.GetBody is not a function. Changing it to dynamic using bodiesUnderMouse.static = false works fine, so the body is found.
×
×
  • Create New...