-
|
Do we need to destroy a plane, which is used by the plane shape settings constructor, after the shape is destroyed? |
Beta Was this translation helpful? Give feedback.
Answered by
jrouwe
Oct 1, 2024
Replies: 1 comment 1 reply
-
|
Yes, you'd either do: let plane = new Jolt.Plane(...);
let settings = new Jolt.PlaneShapeSettings(plane);
Jolt.destroy(plane);
let shape = settings.Create().Get();or, if you want to avoid a new, you could use: let settings = new Jolt.PlaneShapeSettings();
settings.mPlane.SetNormal(...);
settings.mPlane.SetConstant(...);
let shape = settings.Create().Get(); |
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
Yes, you'd either do:
or, if you want to avoid a new, you could use: