Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update octree? #7

Open
notchris opened this issue Jan 5, 2019 · 3 comments
Open

How to update octree? #7

notchris opened this issue Jan 5, 2019 · 3 comments

Comments

@notchris
Copy link

notchris commented Jan 5, 2019

I can see how to remove an object from the octree, but how would I go about animating a block that moves up and down? I'm able to continuously add / remove the object from the octree, updating its calculated collider position, but this bogs down the render. Is this possible? Thanks!

@notchris
Copy link
Author

I was able to build a workaround, but would love some input on this issue.

@yomotsu
Copy link
Owner

yomotsu commented Jan 18, 2019

sorry for very late replay🙇‍♂️

So far, there is no feature for moving object.
maybe, make an empty octree instance and put one moving object, then add / remove at every movement. This could be a workaround. However, the velocity of moving object will not affect the player.

@notchris
Copy link
Author

Ah that is an interesting idea @yomotsu. I'm going to try that later. Would love to help with testing / improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants