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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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