We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Cannot access ammo js from Puzzles

Home Forums Programming Cannot access ammo js from Puzzles

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70863
    ma77hew
    Participant

    Hi. I am trying to figure out why I cannot access Ammo namespace from within Puzzles.
    Can anyone help? I have made sure to enable physics on my project

    • This topic was modified 1 month, 3 weeks ago by ma77hew.
    • This topic was modified 1 month, 3 weeks ago by ma77hew.
    #70867

    Hi ma77hew,

    That’s correct Ammo should be available in the Puzzles, but only if you have the create physics world puzzle before the place you’re accessing this namespace.

    Chief 3D Verger | LinkedIn | Twitter

    #70897
    ma77hew
    Participant

    I am trying to execute javascript with the exec script puzzle. Do I need both the create physics world puzzle and the exec script puzzle to be connected?

    #70904
    kdv
    Participant

    I am trying to execute javascript with the exec script puzzle.

    this puzzle has no access to external variables except v3d, app, VARS and PROC.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #70905
    ma77hew
    Participant

    Okay, so then you say I cannot access the Ammo namespace with the exec script then?

    • This reply was modified 1 month, 3 weeks ago by ma77hew.
    #70914
    kdv
    Participant

    Depends on what you want to access. Try window.Ammo.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #70934

    Do I need both the create physics world puzzle and the exec script puzzle to be connected?

    yes! see the Arcade Racing demo freely available from the Asset store.

    Chief 3D Verger | LinkedIn | Twitter

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.