Skip to content

Add getter/setter for mUserData on Character #1533

Answered by jrouwe
NEO97online asked this question in Q&A
Discussion options

You must be logged in to vote

I did not provide convenience functions for every function on Body because it's very simple to do this:

physics_system->GetBodyInterface().GetUserData(character->GetBodyID())

or

physics_system->GetBodyInterface().SetUserData(character->GetBodyID(), ...)

(and I would assume that it will be similar in the C wrapper interface)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NEO97online
Comment options

@jrouwe
Comment options

Answer selected by NEO97online
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1531 on February 23, 2025 16:23.