ISpatialAccelerationCollectionFactory

Windows
MacOS
Linux

References

Module

Chaos

Header

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

Include

#include "Chaos/PBDRigidsEvolution.h"

Syntax

struct ISpatialAccelerationCollectionFactory

Destructors

Functions

Name Description

Public function

TUniquePtr< ...

 

CreateAccelerationPerBucket_Threaded

(
    const TConstParticleView< FSpatialA...,
    uint16 BucketIdx,
    bool ForceFullBuild
)

Chaos creates new acceleration structures per bucket. Factory can change underlying type at runtime as well as number of buckets to AB test.

Public function

TUniquePtr< ...

 

CreateEmptyCollection()

Create an empty acceleration collection with the desired buckets. Chaos enqueues acceleration structure operations per bucket.

Public function Const

uint8

 

GetActiveBucketsMask()

Mask indicating which bucket is active. Spatial indices in inactive buckets fallback to bucket 0. Bit 0 indicates bucket 0 is active, Bit 1 indicates bucket 1 is active, etc...

Public function Const

bool

 

IsBucketTimeSliced

(
    uint16 BucketIdx
)

Determines if bucket implements time slicing.

Public function

void

 

Serialize

Serialize the collection in and out.

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