Code Monkey home page Code Monkey logo

floatingorigin's People

Contributors

mvriel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

floatingorigin's Issues

Add support for the Y coordinate

Initially, this component was designed for Cloud Workers. Cloud Workers can, currently, not be partitioned on the Y axis, only in X and Z. But Clients could go further up or down on the Y axis than is convenient. It will also simplify the code as some provisions have been made to ignore the Y axis.

Add tests and more documentation

This one is kind of obvious; there are no unit tests for this component at the moment. These should be added to ensure stability. In addition, the README is kind of empty right now and there is a lot more to tell about this technique

Add support for scaling

Currently, the floating origin can only change the position of the environment but to support a larger range of effects it should also be nice if you can scale the local coordinates. This can be convenient in cases where you want to keep precision but do want to zoom into minute detail or zoom out to get a huge overview. By scaling coordinates instead of actually zooming in or out you retain a higher precision

Add possibility to have an 'anchor'

On cloud workers it is not relevant where the origin is as long as the given game objects are within the given Dimensions. For Clients it would however be better if the centre of the new position tries to match an anchor (usually the Camera or player object) as much as possible.

This is nice because floating point imprecisions may be visible at the edges of the dimensions (depending on how large of an area you set) and by preferring the anchor to be in the center of the shift area it will have the least jitter.

Verify support for pooled resources

At the moment the component moves the origin of all unparented game objects matching the LayerMask that you have provided. This means that when objects are pooled that it will move the entire pool instead of the individual (active) items.

This behaviour should be changed to move active objects inside of the pool instead of the pool itself.

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.