TSphere

Windows
MacOS
Linux

Inheritance Hierarchy

FImplicitObject

TSphere

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/CollisionResolution.h

Include

#include "Chaos/CollisionResolution.h"

Syntax

template<class T, int d>
class TSphere : public Chaos::FImplicitObject

Constructors

Name Description

Public function

TSphere

(
    const TSphere < T, d >& Other
)

Public function

TSphere

(
    TSphere < T, d >&& Other
)

Public function

TSphere

(
    const TVector < T, d >& InCenter,
    const T InRadius
)

Destructors

Name Description

Public function Virtual

~TSphere()

Functions

Name Description

Public function Const

TArray < TVec ...

 

ComputeLocalSamplePoints

(
    const T PointsPerUnitArea,
    const int32 MinPoints,
    const int32 MaxPoints
)

Public function Const

TArray < TVec ...

 

ComputeLocalSamplePoints

(
    const int NumPoints
)

Returns sample points centered about the origin.

Public function Const

TArray < TVec ...

 

ComputeSamplePoints

(
    const T PointsPerUnitArea,
    const int32 MinPoints,
    const int32 MaxPoints
)

Public function Const

TArray < TVec ...

 

ComputeSamplePoints

(
    const int NumPoints
)

Returns sample points at the current location of the sphere.

Public function Virtual Const

Pair < TVecto ...

 

FindClosestIntersectionImp

(
    const TVector < T, d >& StartPoint,
    const TVector < T, d >& EndPoint,
    const T Thickness
)

Public function Const

TVector < T, ...

 

FindClosestPoint

(
    const TVector < T, d >& StartPoint,
    const T Thickness
)

Public function Static

T

 

GetArea

(
    const T InRadius
)

Public function Const

T

 

GetArea()

Public function Const

const TVecto ...

 

GetCenter()

Public function Const

const TVecto ...

 

GetCenterOfMass()

Public function Const

PMatrix < T, ...

 

GetInertiaTensor

(
    const T InMass,
    const bool bInThinShell
)

Public function Static

PMatrix < T, ...

 

GetInertiaTensor

(
    const T InMass,
    const T InRadius,
    const bool bInThinShell
)

Public function Const

T

 

GetMargin()

Public function Const

T

 

GetRadius()

Public function Static

TRotation < T...

 

GetRotationOfMass()

Public function Const

T

 

GetVolume()

Public function Static

T

 

GetVolume

(
    const T InRadius
)

Public function Const

bool

 

Intersects

(
    const TSphere < T, d >& Other
)

Public function Virtual Const

T

 

PhiWithNormal

(
    const TVector < T, d >& InSamplePoi...,
    TVector < T, d >& OutNormal
)

Public function Virtual Const

bool

 

Raycast

(
    const TVector < T, d >& StartPoint,
    const TVector < T, d >& Dir,
    const T Length,
    const T Thickness,
    T& OutTime,
    TVector < T, d >& OutPosition,
    TVector < T, d >& OutNormal,
    int32 & OutFaceIndex
)

Public function

void

 

SerializeImp

(
    FArchive & Ar
)

Public function Static

constexpr EI ...

 

StaticType()

Public function Const

TVector < T, ...

 

Support

(
    const TVector < T, d >& Direction,
    const T Thickness
)

Public function Const

const TVecto ...

 

Support2

(
    const TVector < T, d >& Direction
)

Overridden from FImplicitObject

Name Description

Public function Virtual Const

const TAABB <...

 

BoundingBox()

Public function Virtual Const

TUniquePtr < ...

 

Copy()

Public function Virtual Const

uint32

 

GetTypeHash()

Public function Virtual

void

 

Serialize

(
    FChaosArchive & Ar
)

Public function Virtual

void

 

Serialize

(
    FArchive & Ar
)

Public function Virtual Const

FString

 

ToString()

Operators

Name Description

Public function

TSphere &

 

operator=

(
    TSphere < T, d >&& InSteal
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback