Spring and Motor

  • cyberdragon
    27th Apr 2013 Member 2 Permalink

    Spring is simple, just a non-powered piston that expands upon unpause or the removal of an obstruction. 

     

    Motor...is far more complicated...but possibly could be another solution to moving solids. The idea is simple, when used with frame it rotates a circle of pixals aroud it. Diameter would be set by tmp and speed (in frames per rotational unit) by tmp2. Now,...should it rotate in degrees or radians? 8-P Anyway, I'll look up a rotation algorithm (there has to be some for video games) that might be compatable with Powder Toy. I'll post a link if I find a good one. And...yes...if you try to turn a square only a circle of it will turn. If the edges of the circle go outside the square then the square will be destroyed. 

     

    EDIT: The add box says that 2 people are spying on me. (OH GOD! WHY?!) Anyway...trigonometry,

    http://en.wikipedia.org/wiki/Transformation_matrix#Examples_in_2D_graphics

  • sandstorm
    27th Apr 2013 Member 0 Permalink

    erg, rotation might be ugly. mebbie something else? I could see things being messed up royally, and what exactly would it do? mebbie when we get gears, it could power them or something...

  • greymatter
    27th Apr 2013 Member 0 Permalink
    @cyberdragon (View Post)
    spring is good. Motor? hmm...
  • johnfaber
    27th Apr 2013 Member 0 Permalink

    Well, what would obstruct spring? We need to define that, otherwise they'll only move powders and liquids, and that's rather useless.

  • Incredy
    27th Apr 2013 Member 0 Permalink

    The motor reminds me of Powder Game..

  • cccp2
    27th Apr 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • cyberdragon
    27th Apr 2013 Member 0 Permalink

    No, that's not what I meant. I meant a maximum movable pixals limit like piston.