Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Block-CalculateMassFromVolume.md
2024-08-26 23:07:20 +03:00

19 lines
892 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Calculate Mass from Volume
Menu Path : **Attribute > Derived > Calculate Mass from Volume**
The **Calculate Mass from Volume** Block sets a particles **Mass** attribute based on its volume, derived from the **Scale** attribute and the Blocks **Density** property. This Block is useful for calculating the mass of particles with different scales so they behave believably during physics simulations.
## Block compatibility
This Block is compatible with the following Contexts:
- [Initialize](Context-Initialize.md)
- [Update](Context-Update.md)
## Block properties
| **Input** | **Type** | **Description** |
| ----------- | -------- | ------------------------------------------------------------ |
| **Density** | Float | The mass attribute of a particle based on its volume. The unit for this property is kg/dm<sup>3</sup>. |