Jump to content

Search the Community

Showing results for tags 'soft'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Forums
    • Forum announcements
    • Forum discussion
  • Mine-imator and Modelbench
    • Downloads and news
    • Discussion
    • Creations
    • Resources
    • Tutorials, tips and tricks
    • Help
    • Issues and bugs
    • Suggestions
    • Team requests
  • Lounge

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website


YouTube


Twitter


Discord


Member Title


Location


Interests


Minecraft username

Found 1 result

  1. This is a pretty hard thing to do with GameMaker but none the less its possible. Example Physical Bodies: A soft body accepts deformation unlike a rigid body which denies it. There for when a rigid body falls, it rolls off of other objects still holding it's shape. Rigid body example. Soft body example. How to set up a dynamic body Creating a dynamic body The Glorious David I intend you to use this but I'm sure you have to adjust this to your standards or your set up variables but I hope it helps. Other people can use this to (I made it tutorial style to help people. Enjoy. Creating dynamic bodies is almost the same as creating static bodies. There is one extra argument for dynamic bodies: norotation. If norotation is true, the rotation of the body will not be influenced by other bodies (because the moment of inertia of the body is infinite). body = ep_body_create_dynamic(global.world,false); // false: this body can rotate. You have to set the center of mass, mass and moment of inertia of the body before you can use it. The easiest way to do this is calling ep_body_calculate_mass. This function will calculate the center of mass, mass and moment of inertia of the body based on the shapes you have added to the body. Circle shapes You can create circle shapes in the same way you create box shapes: Polygon shapes Creating polygon shapes is more complicated.(such as a torch or player), because you have to create a polygon first. A polygon can be used by multiple bodies, so usually you can create all polygons immediately after creating the world. There are two things you have to take in mind: Vertices have to be declared in clockwise order (in a left-handed coordinate system). All polygons have to be convex. If a body is concave you have to create multiple convex polygons. You can use multipolygons to accomplish that. Simulating You have to call ep_world_update_contacts and ep_world_simulate_step to simulate one step. Usually this is done in the end step event of the controller. After simulating a step you have to update the position and orientation of the objects in Game Maker to see the results of the simulation. This is usually done in the end step event of the objects. Tip you should probably destroy the object/player after leaving the room. Okay
  • Create New...