Skip to content

how to interact directly with space coordinates? #1137

Closed Answered by rh101
10100010010001001010 asked this question in Q&A
Discussion options

You must be logged in to vote

What do you mean by "update"? Are you referring to the Node::update() method?

Check the void Sprite::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) function to see how it handles culling, and perhaps you can use the same method to stop updating the object.

You could also check the position of an object within the world with a to call getWorldPosition() on that object (if it's a subclass of Node). You would then do the boundary checks based on that position.

Replies: 1 comment 2 replies

Comment options

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

@rh101
Comment options

rh101 Mar 27, 2023
Collaborator

Answer selected by 10100010010001001010
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