sm.terrainHarvestable.calculateInitialHash
Calculates the initial hash of a kinematic. The initial hash identifies the kinematic by its initial world position, uuid and world id.
Kind: Function
Environments: Terrain
Terrain
sm.terrainHarvestable.calculateInitialHash( uuid, world, position, rotation )
Open the full Terrain reference
This hash will be unsalted. Usually kinematics created from script rather than from cell loading have their hashes salted with random numbers.
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
Uuid | The kinematic uuid. |
world |
World | The world the kinematic is in. |
position |
Vec3 | The initial position of the kinematic in world space. |
rotation |
Quat | The initial rotation of the kinematic. |
Returns:
| Type | Description |
|---|---|
| number | The calculated unsalted initial hash. |