-
|
If I use alternative filtering using group and mask bits, how do I correctly step extended update of the character virtual? I suppose the question here is what are the broadphase and object filters that I pass there? Is it something like this? const bpFilter = new Jolt.DefaultBroadPhaseLayerFilter(joltInterface.GetObjectVsBroadPhaseLayerFilter(), 1);
const objectLayer = backend.Jolt.ObjectLayerPairFilterMask.prototype.sGetObjectLayer(group, mask);
const objFilter = new Jolt.DefaultObjectLayerFilter(new Jolt.ObjectLayerPairFilterMask(), objectLayer); |
Beta Was this translation helpful? Give feedback.
Answered by
jrouwe
Sep 17, 2024
Replies: 1 comment 1 reply
-
|
I would expect the following to work (untested): const objectVsBroadPhaseLayerFilter = joltInterface.GetObjectVsBroadPhaseLayerFilter();
const objectLayerPairFilter = joltInterface.GetObjectLayerPairFilter();
const objectLayer = backend.Jolt.ObjectLayerPairFilterMask.prototype.sGetObjectLayer(group, mask);
const bpFilter = new Jolt.DefaultBroadPhaseLayerFilter(objectVsBroadPhaseLayerFilter, objectLayer);
const objFilter = new Jolt.DefaultObjectLayerFilter(objectLayerPairFilter, objectLayer); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LeXXik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would expect the following to work (untested):