EZ Soft Bone by EZhex1991 - 4

Games & ProjectsSimulators

A simple kinetic simulator for Unity, you can use it to simulate hair/tail/breast/skirt and other soft objects

Unknown VersionUnknown LicenseUpdated 19 days agoCreated on May 20th, 2019
Go to source

EZSoftBone

This package is totally FREE and open-source.
If you feel it helpful, you can buy it on AssetStore to support me. Other than that, Donations are always welcome.

If you need a refund, send your Invoice Number to ezhex1991@outlook.com. Refund for any reason will be accepted.

EZSoftBone is a simple kinetic simulator for Unity, you can use it to simulate hair/tail/breast/skirt and other soft objects.

View it on GitHub
查看中文介绍

EZSoftBone EZSoftBone

  • All colliders supported (include MeshCollider)
  • Net structure supported (Cloth simulation)
  • Use EZSoftBoneMaterial to adjust effects, and reuse it on other EZSoftBones
  • Inherit EZSoftBoneColliderBase to create custom colliders

EZSoftBone

EZSoftBone

  • Root Bones: a list of root bone Transforms
  • End Bones: a list of end bone Transforms
  • Structure
    • Start Depth: start depth of this system. (Transforms would be relatively static to its parent if its depth is below this value)
    • Sibling Constraints: add constraints to the nodes that have the same depth
      • None: no sibling constraints (chain simulation)
      • Rooted: use sibling constraints for each Root Bone separately
      • Unified: use sibling constraints for the entire SoftBone system
    • Length Unification: length calculation of this system, it determines how the radius and material parameters distributed on this system
      • None: compute each chain (length of the longest child chain will be used on the branches)
      • Rooted: each root use the length of its longest child chain
      • Unified: use the length of the longest chain for the entire system
    • Sibling Rotation Constraints: should sibling constraints affect rotations
    • Closed Siblings: check this to add sibling constraints as a loop circle
  • Collision
    • Collision Layers: which layers should the system collide with
    • Extra Colliders: extra colliders (normal colliders required, this is for compatible purpose)
    • Radius: collider size
    • Radius Curve: how should the size distribute on the bones
  • Performance
    • Iterations: how many times should the calculations done in one frame
    • Material: EZSoftBoneMaterial, default material will be used if not specified
    • Sleep Threshold: speed below this threshold will go to sleep (useful for high frame rate)
  • Force
    • Gravity: gravity
    • Force Module: EZSoftBoneForce, wind simulation
  • References
    • Gravity Aligner: A transform can be specified to determine how much the gravity affects the system, inversely correlated to dot-production of aligner’s y direction and world’s y direction
      • eg: Create a new GameObject, leave its rotation unchanged (identical to the world space), drag it down to the head of a character, and set it as the aligner of the Hair system. You will see the grivity has no effect on the hair when the character stands still, and has maximum effect when the character lies down or bows
      • To create a context menu to reset Transform’s world rotation easily, Check this page: EZTransformContextMenu
    • Simulate Space: A transform can be specified as a simulate space, it’s useful when the system needs to be updated with a moving object (relatively static)
      • eg: a character in a moving car, hair should be relatively static to the car

EZSoftBoneMaterial

EZSoftBoneMaterial

  • Damping: speed attenuation
  • Stiffness: shape retention
  • Resistance: force resistence
  • Slackness: length retention

Each value has a corresponding curve represent the value distribution on the bone hierarchy

EZSoftBoneCollider

EZSoftBoneCollider

  • Reference Collider: All types of colliders could be referenced, EZSoftBoneCollider don’t have to be on the same GameObject with its reference collider
  • Margin:
  • Inside Mode:

EZSoftBoneForce

EZSoftBoneForce_Curve EZSoftBoneForce_Perlin

  • Use Local Direction: check it to use local space direction
  • Direction: base force vector
  • Turbulence: force turbulence vector
  • Conductivity: (wind speed)
  • Turbulence Mode:
    • Curve:
      • Turbulence Time Cycle: turbulence time cycle
      • Turbulence Curve: turbulence variation curves for each axis
    • Perlin:
      • Turbulence Speed: x coordinate speed for 2d perlin noise
      • Random seed: y coordinate position for 2d perlin noise
Show all projects by EZhex1991