• Stars
    star
    353
  • Rank 119,766 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

💥 An open-source script to destroy objects realistically in Unity3D.

unity-destruction

An open-source script to destroy objects realistically in Unity3D.

Video

Features

  • Make stuff break up on impact with other stuff!
  • Make stuff break up when there's nothing underneath supporting it!
  • Make stuff break up for no reason whatsoever!
  • Make stuff explode!
  • Make stuff make sounds when it breaks up!
  • Make stuff make particles when it breaks up!
  • Things can also be configured to only partially break apart, depending on impact velocity.
  • Includes an example game where you can throw a ball at a cube. It's funner than it sounds.

How to use

  • Make an unbroken and a broken version of your object. I recommend using Blender's cell fracture feature.
  • Add 'Destruction/Assets/Scripts/Destruction.cs' to the unbroken version.
  • Mess with the settings until you get the desired breaking effect.
  • For examples, see 'Destruction/main.unity'.
  • Use Destruction.Break() to break things via a script, or Destruction.BreakWithExplosiveForce(float, float) to break things with explosive force via a script.

More Repositories

1

haema

🧛 Play as a vampire! A mod for fabric/quilt.
Kotlin
13
star
2

legacy-brigadier

💻 Rewriting the chat and command system of a 10-year-old version of a game to give it a proper API and add new features.
Java
4
star
3

EssentialFeatures

🎮 A Minecraft Forge Mod for 1.10 to 1.16.5, adding assorted features.
Java
4
star
4

unity-black-hole

An attempt to make a black hole in unity
ShaderLab
3
star
5

boats-and-beeps

🚣 A Minecraft Mod adding customisable, extendable boats!
Kotlin
3
star
6

Haunt

A game where you are a ghost, and must possess people and haunt things to get to your goal
C#
2
star
7

esp8266-RFID

Arduino
2
star
8

potionofbees-fabric

🐝 Adds potions that are also bees, ported to fabric.
Java
2
star
9

explosivessquared

Kotlin
2
star
10

unity-easy-portals

C#
1
star
11

bigbuckets-fabric

Java
1
star
12

kerbalcraft

📡 Software to interface Minecraft with KSP using kRPC
Java
1
star
13

rumbly-wumbly

Java
1
star
14

g-vault

Kotlin
1
star
15

clashofclasses

Just a silly game by me and my friends.
ASP
1
star
16

multipart-entities

Java
1
star
17

functional-programming-site

JavaScript
1
star
18

dotfiles

💻 My dotfiles
Vim Script
1
star
19

raycast-engine

📷 A pseudo-3D raycast-rendering game engine made with Kotlin and LWJGL. Think Wolfenstein 3D!
Kotlin
1
star
20

writouli

📖 An editor/generator for Patchouli books.
TypeScript
1
star
21

raycast-engine-random-world

🌍 An addon for raycast-engine that randomly generates a world.
Kotlin
1
star
22

KSPSerialIO-Control-Panel

Arduino C code to control a control panel for KSP (kerbalspaceprogram.com)
1
star
23

floriculture

Java
1
star