FBuoyancyComponentSim

Choose your operating system:

Windows

macOS

Linux

References

Module

Water

Header

/Engine/Plugins/Experimental/Water/Source/Runtime/Public/BuoyancyComponentSimulation.h

Include

#include "BuoyancyComponentSimulation.h"

Syntax

class FBuoyancyComponentSim

Constructors

Name Description

Public function

FBuoyancyComponentSim()

Functions

Name Description

Public function Static

void

 

AddForce

(
    TBody* Body,
    const FVector& Force
)

Public function Static

void

 

AddForceAtPositionWorld

(
    TBody* Body,
    const FVector& WorldForce,
    const FVector& WorldPosition
)

Public function Static

void

 

AddTorque

(
    TBody* Body,
    const FVector& TorqueRadians
)

Public function Static

void

 

ApplyAngularDrag

(
    TBody* Body,
    const FBuoyancyData& BuoyancyData,
    const TState& State
)

Public function Static

void

 

ApplyBuoyancy

(
    TBody* Body,
    TAux& Aux,
    const TState& State
)

Public function Static

void

 

ApplyLinearDrag

(
    TBody* Body,
    const FBuoyancyData& BuoyancyData,
    const TState& State
)

Public function Static

void

 

ApplyTorqueForDownstreamAngularRotation

(
    const float DeltaSeconds,
    TBody* Body,
    TState& State,
    const FBuoyancyData& BuoyancyData,
    TAux& Aux
)

Computes torque to rotate the object downstream.

Public function Static

void

 

ApplyWaterForce

(
    TBody* Body,
    const FBuoyancyData& BuoyancyData,
    const TState& State,
    TAux& Aux,
    float DeltaSeconds
)

Public function Static

void

 

ComputeBuoyancy

(
    const FBuoyancyData& BuoyancyData,
    FSphericalPontoon& Pontoon,
    float ForwardSpeedKmh,
    float VelocityZ
)

Public function Static

FVector

 

ComputeWaterForce

(
    FSphericalPontoon& Pontoon,
    const FBuoyancyData& BuoyancyData,
    const FVector& BodyVelocity,
    float DeltaTime
)

Public function Static

FVector

 

GetAngularVelocity

(
    const TBody* Body
)

Public function Static

FVector

 

GetVelocity

(
    const TBody* Body
)

Public function Static

float

 

GetWaterHeight

(
    const TArray< FSolverSafeWaterBodyD...,
    FVector Position,
    float InWaveReferenceTime,
    const TMap< const FSolverSafeWaterB...,
    float DefaultHeight,
    FSolverSafeWaterBodyData*& Out...,
    float& OutWaterDepth,
    FVector& OutWaterPlaneLocation,
    FVector& OutWaterPlaneNormal,
    FVector& OutWaterSurfacePosition,
    FVector& OutWaterVelocity,
    int32& OutWaterBodyIdx,
    bool bShouldIncludeWaves
)

Public function Static

FTransform

 

GetWorldTM

(
    const TBody* Body
)

Public function Static

float

 

ToKmH

(
    float Speed
)

Public function Static

void

 

Update

(
    const float DeltaSeconds,
    const float TotalSeconds,
    const UWorld* World,
    TBody* Body,
    const FBuoyancyData& BuoyancyData,
    TAux& Aux,
    const TMap< UWaterBodyComponent...,
    TOut& Out
)

Public function Static

void

 

UpdateBuoyancy

(
    const TBody* Body,
    TState& State,
    const FBuoyancyData& BuoyancyData,
    TAux& Aux,
    const TMap< UWaterBodyComponent...
)

Public function Static

void

 

UpdatePhysicsState

(
    const TBody* Body,
    TState& State
)

Typedefs

Name

Description

TParticleUtilities