Giter Club home page Giter Club logo

velvet.js's People

Contributors

cameronmbell avatar ruchirbapat avatar

Watchers

 avatar  avatar

Forkers

ruchirbapat

velvet.js's Issues

Clone function not working for deep children

The .clone() function for anything that inherits from Base does not work as expected on the scenegraph. Although is will work for the most part it will not clone children of children.

Check if a variable is of type component

In order to use the addComponent function, that function need to chack that the parameter passed is a valid component (not just a random type like string).

Someone figure out how to do this:

this.addComponent = function(componentInstance)
    {
        //Check that it is a valid componenet
        //e.g. renderer
        //--> How would I do this <--

        //Add to list
        this.components.push(componentInstance);
    }

Transform scene graph updaing

When modifying transform.position, transform.scale, transform.localPosition and transform.localScale then the scenegraph will not update.

Read more about the specifics here: http://stackoverflow.com/questions/40991821/typescript-setter-is-not-called-on-a-sub-property-of-a-class-instance/40992866?noredirect=1#comment69207842_40992866

Example that may cause the problem:

player.transform.position = new Vector2(10, 10); //Okay
player.transform.position.x = 10; //This will not update the scene graph and may cause problems

A warning has been added to the vector class - but this is a temporary solution

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.