Jump to content

How to push objects


bloodbarron115
 Share

Recommended Posts

I have a snow plow that spawns in when the snow reaches a certain point. When the snow reaches said point the snow falling goes back to its start point and continues falling. When the snowplow spawns it goes across the screen until the snow reaches the point again. My problem is that the snow plow doesn't push the snow when it goes across the screen. I've been stuck for a hours trying to solve this and I can't.

Link to comment
Share on other sites

I think you need to show us a demonstration, but if the issue is that the pushed objects keep moving, try doing this:

pushableObject.body.drag.set(1000);

This will cause the pushable object to have a large 'drag' value in both x and y axes, and so unless the object is being actively pushed it will immediately come to a stop. Lower values will cause it to come to a stop more gradually.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...