DinoFracture 2.11.1
A Dynamic Fracture Library
Loading...
Searching...
No Matches

DinoFracture.GlueEdgeOnFracture Class Reference

If the fracture pieces intersects with a specified trigger when created, the rigid body is destroyed and the piece becomes static. Otherwise, the piece will turn on gravity. It’s best used if the FractureTemplate’s rigid body is set to not use gravity initially.
More...

Inherits MonoBehaviour.

Public Attributes

string CollisionTag = ""
 The piece will be glued if it intersects a trigger with this collision tag. Set to empty to allow any trigger to glue the piece.
 
bool DestroyRigidBody = true
 If true, the rigid body will be destroyed when glued. This will prevent further fractures that rely on collision events, but will reduce processing on Unity.
 

Detailed Description

If the fracture pieces intersects with a specified trigger when created, the rigid body is destroyed and the piece becomes static. Otherwise, the piece will turn on gravity. It’s best used if the FractureTemplate’s rigid body is set to not use gravity initially.