FSpeedTreeWind

SpeedTreeWind.h

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SpeedTreeWind.h

Include

#include "SpeedTreeWind.h"

Syntax

class FSpeedTreeWind

Remarks

SpeedTreeWind.h

*** INTERACTIVE DATA VISUALIZATION (IDV) PROPRIETARY INFORMATION ***

This software is supplied under the terms of a license agreement or nondisclosure agreement with Interactive Data Visualization and may not be copied or disclosed except in accordance with the terms of that agreement. Copyright (c) 2003-2012 IDV, Inc. All Rights Reserved.

IDV, Inc. Web: http://www.idvinc.com

Variables

Name Description

Protected variable

bool[NUM_WIND_O...

 

m_abOptions

Protected variable

float[3]

 

m_afBranchWindAnchor

Protected variable

float[3]

 

m_afDirection

Protected variable

float[3]

 

m_afDirectionAtStart

Protected variable

float[3]

 

m_afDirectionMidTarget

Protected variable

float[3]

 

m_afDirectionTarget

Protected variable

float[NUM_OSC_C...

 

m_afOscillationTimes

Protected variable

float[2]

 

m_afRollingOffset

Protected variable

float[NUM_SHADE...

 

m_afShaderTable

Includes Previous frame's values after current.

Protected variable

bool

 

m_bGustingEnabled

Protected variable

bool

 

m_bNeedsReload

Protected variable

float

 

m_fCombinedStrength

Protected variable

double

 

m_fDirectionChangeEndTime

Protected variable

double

 

m_fDirectionChangeStartTime

Protected variable

double

 

m_fElapsedTime

Protected variable

float

 

m_fGust

Protected variable

double

 

m_fGustAtStart

Protected variable

double

 

m_fGustFallStart

Protected variable

double

 

m_fGustFallTarget

Protected variable

double

 

m_fGustRiseTarget

Protected variable

double

 

m_fGustStart

Protected variable

double

 

m_fGustTarget

Protected variable

double

 

m_fLastTime

Protected variable

float

 

m_fMaxBranchLevel1Length

Protected variable

float

 

m_fStrength

Protected variable

float

 

m_fStrengthAtStart

Protected variable

double

 

m_fStrengthChangeEndTime

Protected variable

double

 

m_fStrengthChangeStartTime

Protected variable

float

 

m_fStrengthTarget

Protected variable

SParams

 

m_sParams

Constructors

Name Description

Public function

FSpeedTreeWind()

Default constructor for FSpeedTreeWind.

Functions

Name Description

Public function

ENGINE_API v...

 

Advance

(
    bool bEnabled,
    double fTime
)

Animation

Protected function

void

 

ComputeWindAnchor

(
    float* pPos
)

Computes the wind anchor position based on current wind conditions.

Public function

ENGINE_API v...

 

EnableGusting

(
    bool bEnabled
)

Public function Const

ENGINE_API c...

 

GetBranchAnchor()

Public function Const

ENGINE_API f...

 

GetMaxBranchLength()

Public function Const

ENGINE_API c...

 

GetParams()

Public function Const

ENGINE_API c...

 

GetShaderTable()

Protected function

void

 

Gust

(
    double fTime
)

Advances the gust parameter and randomly gusts if it can (e.g., the gust is not dying off or rising) based on the gust frequency.

Protected function

float

 

Interpolate

(
    float fA,
    float fB,
    float fAmt
)

Public function Const

ENGINE_API b...

 

IsOptionEnabled

(
    EOptions eOption
)

Protected function

float

 

LinearSigmoid

(
    float fInput,
    float fLinearness
)

Converts an input value (fInput) in the range [0.0, 1.0] to an s-curve. The parameter fLinearness flattens out the s-curve where 0.0 = s-curve and 1.0 = linear.

Public function

ENGINE_API b...

 

NeedsReload()

Protected function

void

 

Normalize

(
    float* pVector
)

Normalizes the the incoming vector (pVector).

Protected function Const

float

 

RandomFloat

(
    float fMin,
    float fMax
)

Public function

ENGINE_API v...

 

Scale

(
    float fScalar
)

Public function

ENGINE_API v...

 

SetDirection

(
    const FVector& vDir
)

Public function

ENGINE_API v...

 

SetGustFrequency

(
    float fGustFreq
)

Public function

ENGINE_API v...

 

SetGustMax

(
    float InGustMax
)

Public function

ENGINE_API v...

 

SetGustMin

(
    float InGustMin
)

Instantly set gust min/max. Trees will pop if visible. Don't call during gameplay while trees are visible.

Public function

ENGINE_API v...

 

SetInitDirection

(
    const FVector& vDir
)

Public function

ENGINE_API v...

 

SetNeedsReload

(
    bool bReload
)

Public function

ENGINE_API v...

 

SetOption

(
    EOptions eOption,
    bool bState
)

Shader options

Public function

ENGINE_API v...

 

SetParams

(
    const FSpeedTreeWind::SParams& sPa...
)

Settings

Public function

ENGINE_API v...

 

SetStrength

(
    float fStrength
)

Sets the desired strength (fStrength). The FSpeedTreeWind::Advance( ) function will make the actual strength get there smoothly based on the strength response time.

Public function

ENGINE_API v...

 

SetTreeValues

(
    const FVector& vBranchAnchor,
    float fMaxBranchLength
)

Tree-specific values

Classes

Enums

Name

Description

Public enum

Constants

Public enum

EOptions

Shader state that are set at compile time

Public enum

EOscillationComponents

Wind simulation components that oscillate

Public enum

EShaderValues

Values to be uploaded as shader constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss