abakobo

Forum Replies Created

Viewing 15 posts - 271 through 285 (of 455 total)
  • Author
    Posts
  • in reply to: Moving 3D physics object #9321

    abakobo
    Participant

    You are not supposed to move dynamic bodies this way, it would create/induce very strange things energy/space/time wise. You should destroy it before making it appear somwhere else…

    in reply to: lots of errors in both important tutorials #9299

    abakobo
    Participant

    You can find docs with some of these miising things here

    http://turdus.be/monkey2docs/docs/

    It’s from a fork with WIP docs addons

    https://github.com/mx2DocsCommunity/monkey2

    the fork is maintained uptodate regularly so if you build from that fork you’ll have latest mx2 with some more docs on core language. It’s not perfect though..

    in reply to: Where is Mojo3D? #9240

    abakobo
    Participant

    it’s on dev branch of the mx2 github repo…

    https://github.com/blitz-research/monkey2/tree/develop
    or with a bit more docs
    https://github.com/mx2DocsCommunity/monkey2

    v1.1.05b is also available on itch so I suppose it’s with mojo3d too (and prebuilt)
    https://blitzresearch.itch.io/monkey2

    in reply to: Color #9236

    abakobo
    Participant

    So now i have to make Color a variaible.

    Not really, you may:

    [/crayon]

    This should the equivalent of SetColor(r,g,b)

    in reply to: any suggestion for importing external generic method #9108

    abakobo
    Participant

    Ok thanks for the info. Just wanted it to be as identical as possible to original box2D. Will wrap it around then. Don’t know what to do with generics global function though, because they actualy work, so I think I’ll keep them like that until(if) a problem occurs..

    in reply to: user modules folder? #9091

    abakobo
    Participant

    I’ve never seen such thing..

    in reply to: Close New v1.1.05 #9062

    abakobo
    Participant

    And where do I put the downloaded github for ted2go? Do I need to copy these files (all of it?) into the src/ted2go directory?

    that’s it: replace the ted2go src dir with the content of the downloaded zip from github then run rebuild*2go script

    in reply to: any suggestion for importing external generic method #9060

    abakobo
    Participant

    I just saw in the docs commit of yesterday that extern generic functions can not be imported. Global extern generic functions I tested did work though..

    in reply to: Close New v1.1.05 #9059

    abakobo
    Participant

    Is there a guide in how to compile/install ted2go?

    use terminal and go to monkey2/scripts

    then type rebuildted2go on windows
    on bash it is ./rebuild2go.sh I think but i’m not sure.

    (you can use rebuildall2go when using an mx2 github dowload)

    in reply to: cpp Math #9038

    abakobo
    Participant

    I am actually only aiming for ‘useful c++ support’. Full c++ support would be impossible without duplicating all of c++’s features (and quirks)

    Operator is a monkey2 feature! (some tokens are not available like ^)

    and when I tried to use external operators it looked like it’s almost there. The cpp was showing errors but it’s not far from the good result:

    [/crayon]

    wich should just be

    [/crayon]

    That is just not adding the postfix.member token and not adding the brackets when the method is an operator.
    In that regard I thought I would post a feature request as it looks not so hard to implement.

    The fact that we can add an operator ‘To’ by creating extension is great though, it let us use mx2’s Vec types with that kind of libraries (in my case box2D) without hassle.

    in reply to: TypeInfo #8954

    abakobo
    Participant

    My bad. I though Typeof was just returning a string.. Was missing the first lines of the reflexion docs.

    what I was looking for was:

    [/crayon]
    in reply to: TypeInfo #8937

    abakobo
    Participant

    I only see how to do it with user defined types..

    TypeInfo also includes functions for inspecting all user defined types:

    Function TypeInfo.GetType( name:String )

    Returns the TypeInfo for a named type. A named type is a namespace or class declared by your app – it does not include primitive types, pointer types, array types etc. Class names must be prefixed by the namespace they are declared in.

    To get an array of ALL named types:

    Function TypeInfo.GetTypes:TypeInfo[]()

    But can we have type info for simple pointers, array…? Some public properties (ArrayRank, PointeeType,..) let me think so but maybe TypeInfo is for user defined only.

    in reply to: Multidimensional Arrays and Copyto? #8916

    abakobo
    Participant
    [/crayon]
    in reply to: Structs and foreach loops #8893

    abakobo
    Participant

    You may use a temporary pointer.
    Local structPtr:myStruct Ptr
    structPtr=varptr myStructInstance
    structPtr->x=123

    Never tried it though..
    If you want a non temporary pointer you’ll have to keep your structs alive.

    in reply to: Box2D #8864

    abakobo
    Participant

    I’ve moved the WIP box2d module to a fork of the original box2d because there has been some commits recently so I wanted to be able to udate easily in the future.
    I’ll work again on it so If anyone is intersted in teamwork please tell.
    https://github.com/abakobo/Box2D

Viewing 15 posts - 271 through 285 (of 455 total)