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

void

 

Serialize

(
    TUniquePtr < ISpatialAccelerationCol ...,
    FChaosArchive & Ar
)

Serialize the collection in and out.

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