Replies: 1 comment
-
They are copied internally, so you can reuse them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some methods take Jolt vectors for initialization of some objects. For example, when creating a body creation settings object, we need to provide position/rotation vectors:
Here, we obviously want to keep the shape. Motion type and layer are scalars, so can be ignored. How about position/rotation? When can those be destroyed/reused?
Assuming those are
new Jolt.Vec3()
, can they be reused immediately to generate a settings object for another body? Want to check if we need to allocate new vectors, or they are copied internally and we can reuse immediately.Beta Was this translation helpful? Give feedback.
All reactions