-
Hi, what's the proper way to cast object types? For example, I'm trying to check the instance of a shape of a body, and then get the proper dimensions depending on the type. To do this, I'm using This is what I'm currently doing:
|
Beta Was this translation helpful? Give feedback.
Answered by
LeXXik
Jun 18, 2024
Replies: 1 comment
-
Yep, I always forget it, but its const actualObject = Jolt.castObject(somePointer, Jolt.ObjectConstructor); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dxu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, I always forget it, but its