Code Monkey home page Code Monkey logo

cylindercollider's Introduction

CylinderCollider

A cylinder collider approximation made of primitive colliders.

Description

CylinderCollider is a compound collider made of BoxColliders. It's usage is limited in playmode as making it dynamically editable could make it more computationally demanding.

Project contains benchmark scene to compare mesh-based cylinder colliders with primitive-collider-based colliders.

Mesh-based cylinder colliders seem to have better performance, but the compound colliders may still perform better than more complex mesh colliders as stated in Unity Documentation.

Screenshot of inspector

2000 cylinder compound colliders with 12 sides:

CylinderCollider_Benchmark

2000 mesh colliders with 12 sides:

MeshCollider_Benchmark

Instruction

  • Select the game object you want to add CylinderCollider
  • Click AddComponent button
  • Select Physics tab and click CylinderCollider
  • Set appropriate values in CylinderCollider inspector
  • Click Generate Collider button

If you want to modify prefabs with CylinderCollider, then you need to go to prefab editor and generate colliders as prefabs in scene editor cannot destroy child objects without losing prefab link.

Requirements

No special requirements are required. Package is tested and works in Unity 2019.4.28f1, however CylinderCollider may work in newer as well as in older Unity versions.

Instalation

Download release unitypackage and import it to your project.

License

CylinderCollider is licensed under the MIT license. CylinderCollider is free for commercial and non-commercial use.

More about license.

cylindercollider's People

Contributors

sztorm avatar

Stargazers

 avatar

Watchers

 avatar

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.