• 0

    posted a message on Physics "Push"

    ehhm
    1) the spehere is not on the ground
    2) i have the gravitation force and buoyancy force.
    i link multiple sheres togehter to make a object physical "swim"

    Posted in: Galaxy Scripting
  • 0

    posted a message on Physics "Push"

    no that's the problem else there would be no rotation speed

    Posted in: Galaxy Scripting
  • 0

    posted a message on Physics "Push"

    plz fast answer :(

    Posted in: Galaxy Scripting
  • 0

    posted a message on Physics "Push"

    hey i need a formula to calculate the new velocity and rotation speed if i apply a force to a sphere (velocity and rotation speed are vectors).
    i have the position of the sphere and force and the x/y/z "speed" of the force and the mass of the sphere.
    would be cool if someone can help me
    oh and i need it for 3d

    Posted in: Galaxy Scripting
  • 0

    posted a message on SCDEBATES on live! 8:30 PM

    hahaha you realised the MOVIE xD

    Posted in: General Chat
  • 0

    posted a message on Show Minimap only

    hide the whole UI and create a dialoge and insert the minimap using a library from assets (sry i don't remember the name of the asset)

    Posted in: Triggers
  • 0

    posted a message on C# to Galaxy Converter

    0.7 is out soon (had nothing to do x.x)
    ignores comments and multi line comments (/* */) but doesn't change it to / / because it can cause errors (for example: double foo = /*10*/20; would be fixed foo = / /1020; => error)
    also removes Windows and Microsoft
    and a endless loop bug is fixed (caused by Min and Max and Abs)

    a version without the bug can be found on the asset link

    Posted in: Third Party Tools
  • 0

    posted a message on C# to Galaxy Converter

    it doesn't convert the whole code to galaxy (i mean the basic sc2 scripting language) it only change the basic things like double to fixed etc.

    oh yea i just write in Point an it get highlited so my bad
    static is also highlited in the editor so i let it.

    Posted in: Third Party Tools
  • 0

    posted a message on C# to Galaxy Converter

    C# to Galaxy Converter v0.6

    Asset: http://www.sc2mapster.com/assets/c-galaxy-converter/

    This is a simple tool that replaces the basic C# names with Starcraft 2 Galaxy names and makes your life easier.

    I made this tool because i need some of my c# code in sc2 and got sick and tired of changing all this variables and etc.

    a small example:

    http://static.sc2mapster.com/content/attachments/11/693/C_SharpToGalaxyConverter.jpg

    Input:

    public static bool IsPointInTriangle(Vector2 p, Vector2 a, Vector2 b, Vector2 c)
    {
        double cross0 = (p.Y-a.Y)*(b.X-a.X)-(p.X-a.X)*(b.Y-a.Y);
        double cross1 = (p.Y-c.Y)*(a.X-c.X)-(p.X-c.X)*(a.Y-c.Y);
        return ((cross0*cross1 >= 0) && (((p.Y-b.Y)*(c.X-b.X)-(p.X-b.X)*(c.Y-b.Y))*cross1 >= 0));
    }
    

    Output:

    static bool IsPointInTriangle(point p, point a, point b, point c)
    {
        fixed cross0 = (p.Y-a.Y)*(b.X-a.X)-(p.X-a.X)*(b.Y-a.Y);
        fixed cross1 = (p.Y-c.Y)*(a.X-c.X)-(p.X-c.X)*(a.Y-c.Y);
        return ((cross0*cross1 >= 0) && (((p.Y-b.Y)*(c.X-b.X)-(p.X-b.X)*(c.Y-b.Y))*cross1 >= 0));
    }
    

    Requires Windows and min NetFrame 3.5

    Currently Supports:

    double -> fixed
    System. (remove)
    Math. (remove)
    Sqrt -> SquareRoot
    class -> struct
    float -> fixed
    long -> fixed
    Vector3 -> point
    Vector2 -> point
    new (remove)
    using (remove)
    public (remove)
    private (remove)
    readonly (remove)
    Threading. (remove)
    Thread. (remove)
    Sleep -> Wait
    

    Update v0.65:

    ++ -> += 1
    Truncate -> Trunc
    Min -> MinF
    Max -> MaxF
    Atan -> ATan
    Atan2 -> ATan2
    Asin -> ASin
    Acos -> ACos
    Abs -> AbsF
    Color -> color
    Rectangle -> region
    Region -> region
    Timers. (remove)
    Timer -> timer
    Point -> point
    Drawing. (remove)
    

    if you know other things post it here

    thanks to:
    s3rius (Quote: The variable type is 'point' and not 'Point')

    Posted in: Third Party Tools
  • 0

    posted a message on Which games are you looking forward to this year?

    Diablo3 for sure and may Bulletstorm

    Posted in: Off-Topic
  • 0

    posted a message on Periodic Event Causing Framerate to drop

    hmm
    may i make a simple bechmark for sc2 functions

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Solved] need XNA 4 help

    hey i started with XNA 4 and made a simple particle system () but fading/alpha only works with BlendState.Additive and not with the others. i allready tryed some things (like color*0.4f etc) but i can't get it to work :(
    plz help

    PS: merry xmas :)

    EDIT: found it out my self....
    for everyone who need it

    public Color ToColor()
    {
    return new Color((float)this.R / 255, (float)this.G / 255, (float)this.B / 255) * (float)(this.A / 255);
    }

    Posted in: Artist Tavern
  • 0

    posted a message on [Info] Patch 1.2 (PTR) Undocumented Editor Changes

    red minerals? :O
    a model or a unit?

    Posted in: Galaxy Editor Bugs and Feedback
  • 0

    posted a message on [Advanced] 2D Physics help

    it says you posted something but i can't find it :o

    Posted in: Galaxy Scripting
  • 0

    posted a message on To spawn units in a circle around a point

    for integer y 1 to 10 do
    create 1 unit at point yourpoint offset by x and 36 * y angle

    Posted in: Triggers
  • To post a comment, please or register a new account.