Catmull-Rom-Splines | Catmull-Rom spline implementation in Unity | Game Engine library

 by   JPBotelho C# Version: Current License: MIT

kandi X-RAY | Catmull-Rom-Splines Summary

kandi X-RAY | Catmull-Rom-Splines Summary

Catmull-Rom-Splines is a C# library typically used in Gaming, Game Engine, Unity applications. Catmull-Rom-Splines has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Organized catmull rom spline implementation in Unity. Spline logic is in its own data structure; Catmull Points (Position, Normal, Tangent) is its own struct. I cleaned up the code from my Road Generator repository, since that was... best not to mention it. If you use it anywhere give me a ping on noobstudiosunity @ gmail.com.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Catmull-Rom-Splines has a low active ecosystem.
              It has 77 star(s) with 9 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              Catmull-Rom-Splines has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Catmull-Rom-Splines is current.

            kandi-Quality Quality

              Catmull-Rom-Splines has 0 bugs and 0 code smells.

            kandi-Security Security

              Catmull-Rom-Splines has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Catmull-Rom-Splines code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Catmull-Rom-Splines is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Catmull-Rom-Splines releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Catmull-Rom-Splines
            Get all kandi verified functions for this library.

            Catmull-Rom-Splines Key Features

            No Key Features are available at this moment for Catmull-Rom-Splines.

            Catmull-Rom-Splines Examples and Code Snippets

            No Code Snippets are available at this moment for Catmull-Rom-Splines.

            Community Discussions

            Trending Discussions on Catmull-Rom-Splines

            QUESTION

            Adding alpha to Catmull-Rom
            Asked 2018-Jun-03 at 15:42

            I am trying to generate a Catmull-Rom curve from a list of points in Unity. As I do not want to store points in between points of the curve I opted to use a solution that could calculate a position in a Catmull-Rom curve based on time. There are a few examples of this, here and here, however, neither shows how to implement alpha.

            The reason I want to implement alpha is so I can have the ability to change between a centripetal, chordal, and uniform Catmull-Rom curve.

            ...

            ANSWER

            Answered 2018-Jun-03 at 15:42

            To anyone who comes here, the answer actually comes from the maths in one of the links from the original question. It is an answer from an SO question Catmull-rom curve with no cusps and no self-intersections . So credits to cfh.

            The code posted in my original question is a great way to calculate points in a uniform Catmull-Rom spline, however, it did not factor in alpha. Therefore, it could not be used for chordal, or centripetal, (or anything in between) Catmull-Rom splines. The code below does take into account alpha and therefore supports both chordal and centripetal Catmull-Rom splines.

            Without further ado, here is the code ported into C# for Unity.

            Source https://stackoverflow.com/questions/50655395

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Catmull-Rom-Splines

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/JPBotelho/Catmull-Rom-Splines.git

          • CLI

            gh repo clone JPBotelho/Catmull-Rom-Splines

          • sshUrl

            git@github.com:JPBotelho/Catmull-Rom-Splines.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link