physics

  1. Ninomojo

    GMS 2 How to "parent" physical objects to another? (Box2D)

    Hi there, I'm new to Game Maker Studio 2, even though I used Game Maker 7 and 8 a lot back in the day. However I'm completely new to physics, and I started looking at tutorials for basic physics simulation. Then tried different types of joints. So far so good. What I can't find information...
  2. Bart

    3D water simulation using Box2D

    Hi all, in the game I'm currently working on there will be quite a bit of water. I'm trying to simulate this in a somewhat realistic and convincing way. The mathematical formulas behind this are not that simple, but luckily the built-in Box2D physics also has LiquidFun, although only for 2D...
  3. 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...
  4. ProjectGamesInc

    GMS 2 Physics + moving platform

    Hi guys, I have a game with physics, all setted and working well (room gravity, object phy properties and so on) but i have a small problem with a platform that basically goes up and down where you can jump on. When the platform goes down the object above it keep "jumping", i think beacouse the...
  5. G

    GMS 2 When to use physics?

    Hey! So I started creating my 2d top down RPG style pixel art game by following a tutorial on youtube. In this tutorial the creator set the physics option for the game to be true. But after finishing the tutorial, and spending quite a lot more time creating my own elements/assets for the game, I...
  6. J

    Physics Distance/Rope Joint Correction Speed

    I'm currently working on a physics-based game with a grappling hook-esque mechanic which pulls the player to a specific distance before allowing the player to freely swing from their current anchor point. So far using the physics rope joint has accomplished the job I want but I was wondering if...
  7. P

    Asset - Demo Infinite Random Generation Engine

    Hey guys! This is a bit of a promo for an asset i'm very excited to announce. I've been working very hard over the last few weeks to bring you guys a simple random generation engine! Features: Random Chunk Generation Engine Beautiful Particle System Reusable Scripts and Examples Full Physics...
  8. XirmiX

    GML Physics to be handled by GPU or CPU?

    From what I've gathered: Draw -> GPU Step -> CPU Though I've heard someone mention that the Draw event is handled BEFORE the step, even though they are listed down differently in engine objects. But what would be the better option to handle physics? The CPU or the GPU? I would assume CPU...
  9. Fixer90

    GMS 2 Physical Collision Object Variable? (SOLVED)

    I can't seem to find - neither on the internet nor the manual - the variable for the object being collided with (physics-wise). I mean, obviously it'd be whatever object I assign the Collision event to, but I need the variable that returns the unique ID of the object being collided with - not to...
  10. D

    GMS 2 Weird behaviors of rope joints

    Hi, I'm currently using a rope joints (physics_joint_rope_create) to connect multiple "rope segments" and create a rope. This method is very popular for making a rope and so far it's been working fine for me - 2 objects connected with a rope will move together in a believable fashion. However...
  11. T

    Physics Items keep stopping

    Hello. Im currently trying to build a gravitational model of planets in Gamemaker2. So far gravity and everything is working great except one problem, Every like second or few the objects just randomly stop and basically the physics has to reset so all momentum and stuff is gone. Any Help? Code...
  12. S

    Bouncing when landing with gravity+physics

    Hello. So i'm using physics and the gravity option from the room settings to make a platformer. Everything is going great except that every time my player lands on the ground it makes this little bounce. It looks super good and realistic but i don't need it in this case. How can i remove the...
  13. B

    Gravity/Physics are bugging out

    I am trying to build a game in which a car drives across terrain by the terrain moving under the wheels and pushing them up using collision, but whenever I start the game, the wheel flies off the screen to the left ridiculously fast. I traced that the problem occurs whenever the terrain has...
  14. J

    Simulating airplane gliding (2d)

    We are designing a 2D flying game (side perspective) with rather realistic physics. Question: How can I make the airplane glide and fly like a real plane? For example, how can I generate a lift force to make the plane float? It would be nice if the lift force depended on the speed of the...
  15. woodsmoke

    Windows Waterfall Mountain

    Waterfall Mountain is my first game jam game. (Simulation Jam hosted by Unique Games) I used the GM1s physics engine for the first time here and I'm quite happy with the results. Let the mesmerizing water drops relax your soul before you crash some rocks and boulders into the water to hinder...
  16. F

    Legacy GM Changing Joint Variables!

    Hey everyone, I'm currently making a character out of ragdoll with the built-in physics of GMS 1.2.1130. I'm having a problem on changing the variables of a certain joint that was created even though I've made a variable within it. I can't seem to find any GMS tutorials about physics that can...
  17. Fixer90

    GMS 2 Changing Physical Position VS Changing Regular Postion? (SOLVED)

    So I've got an object to be moved around via inputs, and this object has physics on and a physics-collision circle as well; it moves based on 2 variables: xspeed and yspeed. How these 2 variables are determined is not important - what is important is this: x += xspeed; y += yspeed...
  18. L

    GMS 2 Physics: lengthdir question

    I started to make a game using physics, and I have a question. I have my topdown game with a character that has a weapon, the weapon's sprite's x and y being the same as the caracter x and y. And I want the weapon to spin following the right joystick's spin (around the character), I think I want...
  19. P

    GMS 2 Mouse-drag object goes through wall

    I have an object (uses physics) that I drag around with the mouse. Create event code looks like this: depth = -1000; grab = false; xx = 0; yy = 0; Step event code looks like this: if(grab==true) { xo=phy_position_x+xx; yo=phy_position_y+yy; phy_speed_x = mouse_x-xo; phy_speed_y...
  20. N

    Changing FPS problems.

    I've made my game physics, which are working on 30 fps. But now, I changed my game to 60 fps to make it smoother, but I experience a lot of 'problems' in physics... I have also tried jumpSpeed=(originalJumpSpeedValue/60)*30; grav = (originalGravValue/60)*30; But still, the gameplay doesn't...
Top