Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API should allow for moving around arbitrary objects #4

Closed
Winter-Guerra opened this issue Mar 27, 2018 · 1 comment
Closed

API should allow for moving around arbitrary objects #4

Winter-Guerra opened this issue Mar 27, 2018 · 1 comment

Comments

@Winter-Guerra
Copy link
Contributor

Winter-Guerra commented Mar 27, 2018

A generalized API struct similar to the "Window" struct currently in use should be created for manipulating arbitrary game objects spawned from arbitrary Prefabs.

The suggested type to add:

    public class GameObject_t
    {
        public string ID { get; set; } # instance ID
        public string prefabID { get; set; } # Prefab name for spawning new instance
        public IList<float> position { get; set; }
        public IList<float> rotation { get; set; }
        // Metadata dictionary with string key and string data.
        public Dictionary<string, string> metadata { get; set; }
     }

This should replace the "Window_t" type currently in use.

@Winter-Guerra
Copy link
Contributor Author

As of v1.5.4, any gameobjects that have been baked into the FlightGoggles binary can be instantiated and moved around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant