Losing Rotation change from Collision?

0 favourites
  • 5 posts
  • I have a bunch of Sprites in a box with Physics applied, the walls are solids. Super basic... I have each Sprite set to "Prevent Rotation: No" but they won't rotate... if I delete one and rebuild it I get Rotation back from Collision with other Sprites and Walls but after making some changes in other areas my Sprites stop Rotating like they should... Having to rebuild to get back Rotation is getting very tedious because the Sprites control other things with their motion.

    How do I get my Rotation back? It helps the random movement of my Sprites quite a bit even though they are just square.

    Thanks!

  • This is not an issue I've ever seen. Post your capx and we'll take a look.

  • dl.dropboxusercontent.com/u/39000273/Clean%20Test.capx

    Here you go! When I first built this the "Emitters" would rotate on impacts as expected... Then I went in and manually adjusted the rotation of each object to see if the starting rotation effected the direction the velocity was applied. After that I've lost the rotation from collision that the Emitters had before.

    The first time this happened I deleted all Emitters and rebuilt them... rotation came back. I manually randomized the starting rotation between each emitter and again lost the rotation change on physical impacts!

    The goal is to be able to fill as much of the faded color area with solid color block as possible without any overlapping. I have a much improved concept for preventing overlaps that I have not yet implemented.

    Thanks!!

  • It's your density. Setting it to zero basically makes it a physical anomaly, and the engine can't figure out what to do with it. Density should always be set to something.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Oh thanks! Happy it was something simple... That makes a lot of sense though because the tweaks I was doing at the time were in an attempt to keep the objects from slowing down. It failed and I came up with another way but never though to reset the density. Thanks for taking a look!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)