Table of Contents

Class RealtimeCoverSettings

Namespace
DFA.Puddlecraft

Settings for the realtime rain cover map.

[Serializable]
public sealed class RealtimeCoverSettings
Inheritance
RealtimeCoverSettings

Properties

area

Side of the detailed square around the camera, in metres (16 to 512). Everything shelters here, moving objects included. Rain particles land within about half of it, or half of farArea when there is a far square.

public float area { get; set; }

Property Value

float

farArea

Side of the coarse square of static objects around the camera, in metres (0 to 2048). 0, or no more than area, turns it off.

public float farArea { get; set; }

Property Value

float

farResolution

Texels along each side of the far square. farArea divided by this is the smallest overhang that keeps rain off far away.

public PuddlecraftResolution farResolution { get; set; }

Property Value

PuddlecraftResolution

hasFar

Whether the far square is in use: farArea is more than area.

public bool hasFar { get; }

Property Value

bool

resolution

Texels along each side of the near square. area divided by this is the smallest overhang that keeps rain off.

public PuddlecraftResolution resolution { get; set; }

Property Value

PuddlecraftResolution

trackMovingObjects

In Play mode, redraw the map wherever a non-static renderer moved, so cars and characters shelter what's under them. Outside Play mode the map always redraws where any renderer moved.

public bool trackMovingObjects { get; set; }

Property Value

bool

updateStep

How far the camera moves before the map follows, in metres (0.25 to 16). The map then redraws only the strip that came into view.

public float updateStep { get; set; }

Property Value

float