sm.terrainHarvestable

Associated object type: Harvestable

Functions:

  • calculateInitialHash

  • sm.terrainHarvestable.calculateInitialHash(uuid, world, position, rotation)

    Calculates the initial hash of a kinematic. The initial hash identifies the kinematic by its initial world position, uuid and world id.

    This hash will be unsalted. Usually kinematics created from script rather than from cell loading have their hashes salted with random numbers.

    Parameters:

    TypeNameDescription
    UuiduuidThe kinematic uuid.
    WorldworldThe world the kinematic is in.
    Vec3positionThe initial position of the kinematic in world space.
    QuatrotationThe initial rotation of the kinematic.

    Returns:

    TypeDescription
    numberThe calculated unsalted initial hash.