FORUMS NOTCH General Javascript : get world position

Tagged: 

  • Author
    Posts
  • isaac
    Participant
    Post count: 14

    I want to calculate acceleration of Object by Javascript.
    But if the target Object is attached on rotating (or moving) parent object’s edge,
    I’ll get value just “0” for target Object position by Javascript.
    (yes, relative position between parent object is not moving).

    So, How can I get a value of world position of the object?

    • This topic was modified 4 months, 1 week ago by  isaac.
  • Ryan Barth
    Keymaster
    Post count: 64

    Hey Isaac,

    You should be able to use the NodeGetWorldPosition() function in Javascript – but if not in the next release there will be an option in the extractor for getting the world position.

    Thanks,

    Ryan

  • isaac
    Participant
    Post count: 14

    Oh! Thanx a lot!
    I got array of geometry position.

    Is there any complete API reference for Notch, except “LEARN -> MANUAL” ?

  • isaac
    Participant
    Post count: 14

    By the way,
    How to get Rotation on World Axis?

  • Pham Linh
    Member
    Post count: 2

    nice

You must be logged in to reply to this topic.