Giter Site home page Giter Site logo

Infinite physics carry. about cogito HOT 2 CLOSED

phazorknight avatar phazorknight commented on August 25, 2024 1
Infinite physics carry.

from cogito.

Comments (2)

Phazorknight avatar Phazorknight commented on August 25, 2024

Makes total sense and shouldn't be too hard to implement. Will try to get that added soon.

from cogito.

Phazorknight avatar Phazorknight commented on August 25, 2024

Added the following in 202402.04:
CarryableComponent now has a drop_distance property.
If the distance between object and the carryable position goes above this value, the object gets dropped.
It's not perfect but helps with "sticky objects".

As a fun side-effect, if the carrying_velocity_multiplier can't keep up with how much the player moves around with the mouse, the drop_distance is easily reached, thus making it feel like you can actually physically throw objects.

Tweaking these properties is definitely recommended to achieve desired behaviour.

from cogito.

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.