Giter Club home page Giter Club logo

Comments (4)

fgnm avatar fgnm commented on May 22, 2024

Hi, currently physics bodies connot be placed inside composites (I don't know if this will ever be possible in future becuase the problem is more conceptual.. What should happens if other objects that aren't physics?). I think that physics inside composite doesn't make much sense, but if you've suggestions please share :)

Regarding coordinates you can move any type of object by changing values in TransformComponent. Remeber that coordinates are local to the composite size and position, CompositeSystem does the expected behavior as it have to update position relative to parent composite.

from hyperlap2d.

qlang122 avatar qlang122 commented on May 22, 2024

i got it. although I didn't enable Physics. but I created the Physics composites. so PhysicsSystem will still update it.

also, it can't be use PerspectiveCamera for perspective effect? similar to the effect of 2.5D game. or can i how to use OrthographicCamera make it.

from hyperlap2d.

fgnm avatar fgnm commented on May 22, 2024

Yes PhysicsSystem will always update bodies and their position, if you need a custom behavior the best way is to override this system like this one made for the editor PhysicsAdjustSystem.

Regarding camera, in theory you can use a PerspectiveCamera at runtime, but current runtime implementation doesn't support anything related to a 3d environment (z axis), you might have to struggle a bit with the sprite batch to get some results... I'd like to add a PerspectiveCamera with more 2.5D effects but this is a very far feature.. there are still lot of 2D stuff that have to me done first

from hyperlap2d.

qlang122 avatar qlang122 commented on May 22, 2024

Well, thank you very much.

from hyperlap2d.

Related Issues (20)

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.