need help with physics

Discussion in 'Programming' started by philman401, Jun 11, 2019.

  1. philman401

    philman401 Member

    Joined:
    Jul 15, 2017
    Posts:
    8
    Learning how to use Box2d...how do i do things like move_snap? Also when trying to create certain things shooting out form specific part of a physics object...for example how would one create flames from a rocket pack's jet? Everytime I try it doesn't come out from the specific point when it rotates.
    Is there way to change the object's physic properties i set, during gameplay w.o fixtures or do i have to do the whole fixture stuff even though I've already set like the properties and modified collision shape?
     
  2. Bentley

    Bentley Member

    Joined:
    Jun 18, 2017
    Posts:
    765
    I have not worked that much with GM physics. But I think you can set/get an instance's position with phy_position_x/y.
     
  3. Matt Hawkins

    Matt Hawkins Member

    Joined:
    Jan 29, 2017
    Posts:
    212
    I'd suggest making a physics object to spawn the flames from and join it to the player with a physics weld joint that way it will move and rotate with the player object
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice