fixture

  1. despair3042

    Asset - Scripts Fixtor: The Next-Gen Fixture Editor

    Introducing Fixtor: An easy-to-use, reliable, full-featured physics fixture editor, for GameMaker: Studio 1 ~ 2.3+. As a fixture editor, Fixtor aims to overcome the fixture limitation of Box2D physics. You can now have as many concaved polygons as you want, as well breaking through the 8-point...
  2. Andrey

    Asset - Scripts Path to fixture (chain_shape) converter

    If you are using the Box2D physics engine, this script can be useful for visualizing the chain. A simple script for converting a path to chain_shape. You draw a path in the room and then convert it to a chain_shape with the desired fixture settings. 1. Create a path. 2. Set the desired fixture...
  3. TongueSurgery

    Creating Physics Fixtures in code and "flipping" them

    Hi all, I created some fixtures in code to use and I'm wondering if it's possible to to just "flip" or mirror them so that it's the same fixture, but mirrored, depending on which direction the sprite is. I've seen a couple threads about this already, but they didn't really go into detail on why...
  4. Bart

    GMS 2 Only trigger collision event when colliding with specific collision group

    Hi all. Recently I've been working on physics collisions on multiple levels using Box2D. To achieve that, I define each level's collision mask with a different positive collision group (>0). When the z value passes the midway point (half level height), I unbind the player's fixture, change its...
  5. 0TastyPie0

    GMS 2 Drawing a line that then becomes solid for other physics objects

    I'm working on a marble run type game, were the player can draw lines for the marble to run down. I use fixtures to setup and draw the line, however other physics objects (such as the marble) seem unaffected by the line. They simply pass through it, when the line is suppose to act as a wall...
  6. Strakee

    Sprite offsets when a fixture is rotated

    I was wondering why the sprite of an instance sort of offsets when the instance is rotated. The red box is the actual shape of the fixture box drawn by phy_debug_render_shapes and the black sprite shouldn't be visible if it was working as intended. The left peg is at the starting angle and...
  7. S

    GMS 2 Weird Collision with Chain Fixture

    Hi guys, i'm having some weird collision detection with chain fixture. I'm using "physics_test_overlap(xpos, ypos, angle, obj);" to detecting it. On the "BLUE" line, he's detecting the fixture chain, but NOT on the "GREEN" and "ORANGE". Does any of you have an idea of what is going on here?
  8. B

    GMS 2 Unbinding physics fixtures from objects

    Hi all. I'm trying to restore an object to normal behaviour after removing a physics fixture from it but I'm unable to do so. It's for a track editor that I'm working on - The desired behaviour is that a track wall object follows the mouse until it is placed (working correctly) and then after...
  9. Rizlad

    Wall Fixtures not creating as expected.

    I'm creating some scripts to create a fixture for a wall segment, (in this example a bottom), using the bottom left corner here and spanning right checking for end of the wall segment to then create the appropriate fixture. The fixtures aren't quite the right lengths and are not in the right...
  10. acidemic

     Bug with Physics Looped Chain Fixture

    There is a bug with looped chain fixtures in the physics engine. 1) This code which uses fixture loop creates a bug: ter_fixture = physics_fixture_create(); physics_fixture_set_chain_shape(ter_fixture, 1); // Looped fixture for (var i=0; i<ter_size; i+=2) {...
  11. XirmiX

    GML [Solved] Iterations problem

    100 - 15 = -140 ? Well, that's what game maker thinks anyway. I have a game where a projectile is colliding with the tank that launched it (the player). The projectile bounces off the wall and hits the tank after being shot in a way that lines it up with the player's tank. I have a variable...
  12. B

    Legacy GM fixture error but im using physics and the collision shape is set as box.

    hello, so my game was working normally and i edited something in the room and then i exited out of the room and i tried to run my game and it said: ___________________________________________ ############################################################################################ ERROR in...
  13. D

    GMS 2 Resizing Fixtures - Both stick, can't seem to remove the first.

    Okay, so this is my first post in the GM:S forums. I've learned SO much from previous questions from users. I've just started learning about 3 months ago and w/ enough persistence I've always found an answer. Unfortunately, this one has stumped me and so has 50 'googles'; so without further or...
  14. sercan

    Error about fixtures

    "The polygon shape for fixture 156 is concave or ordered anticlockwise" Hi guys. I am sure there is no concave fixture or any anticlockwise settlement. but still this error is occuring. Is there anyway to know which object causing this? I can't find the object from fixture id. thanks.
  15. F

    Built-in Physics : problem with fixtures

    Hi guys, I've been trying to get into built-in physics in Game Maker, in order to make Tetromino shapes which can collide with each other, fall, etc. (like in the game Tricky Towers) I wanted to make a fixture for the L-shaped piece, but since GM doesn't allow for concave fixtures, I tried...
  16. V

    GMS 2 Default fixture access?

    Hiyas, I am new with the Gamemaker (currently using GM2 beta). There's something I wasn't able to find answer for with Googling, manual or researching old forum posts. Here it goes: I assume fixtures contain both: attributes for physics (density, angular damping, etc.) and a bounding box. If...
  17. N

    physics_fixture_bind always returns 1

    No matter how many times I call physics_fixture_bind it always returns 1, when it should be a unique index to the bound fixture. Ultimately this seems to be the cause of "The instance does not have an associated physics representation" error when I try to change the density with...
  18. M

    instance does not have an associated physics representation

    Getting an unusual error when I changed an object from using the GUI physics settings to manually assigning the physics settings... ############################################################################################ ERROR in action number 1 of Create Event for object obj_obstacle: The...
  19. Oliver Kitzing

    [SOLVED] Problem with "Physics Basics 2" tutorial

    Hello there, just working through the "official" tutorials included in GameMaker.. I guess there's a problem with the "Physics Basics 2" tutorial. In order to create a fixture with concave elementes, the text explicitely states to code something like that...
  20. E

    Legacy GM Changing density with fixtures.

    I have this in the creation event. fixture = physics_fixture_create(); physics_fixture_set_box_shape(fixture, sprite_width / 2, -(sprite_height / 2)); physics_fixture_set_density(fixture, 0.5); physics_fixture_bind_ext(fixture, self, sprite_width / 2, -(sprite_height / 2))...
Top