Post

Replies

Boosts

Views

Activity

Comment on Post Notification to RCP but Timeline won't fire
I feel like it's more of the issue of AnimationLibraryComponent, I switch the onNotification to onTap trigger on BehaviorComponent, it behaves just like onNotification trigger, not working. Then I found that there is actually missing AnimationLibrary component on my target entity (the one with BehaviorComponent, let's call it entityA). I found that when I add AnimationLibraryComponent on it, the timeline animations in the scene don't add themselves into the AnimationLibraryComponent.
Sep ’24
Comment on Implementing a bouncing surface
The weird thing is, when the ball moves towards the block(wall) directly with linearVelocity's direction almost equaling to the wall's normal's direction. The ball then stopped immediately like it sticks to the wall. Seems like the momentum has completely transferred to the wall. (But I locked the movement of the wall so the wall won't move)
Jul ’24
Comment on Implementing a bouncing surface
I tried to replace Qiu with code-generated ModelEntity, I would say...its probably work? As the simulation result is quite confusing. All I need to do is to let the invisible block not "consume" any of the momentum there. All the speed damping process should only be determined by Qiu's property.
Jul ’24
Comment on Default RealityViewContent has multiple anchors?
Actually with your suggestion in mind, I specifically add an AnchorComponent on Root object of my loaded scene, and set it to anchored to "world". But it seems nothing has changed. I bet there were still some manual settings that I accidentally triggered the setup. Like "when you want to implement a feature, you have to set default anchor to automatic", and probably this line of code is hard coded in RealityKit.
Apr ’24
Comment on Default RealityViewContent has multiple anchors?
Hi @gchiste , I have check that out, my scene actually doesn't contain anything, just an empty scene and all the other game objects are placed and generated in runtime (by loading object from another .usda scene). I didn't find any AnchorComponent in any of my scene (.usda file). Is there any other way that may affect the anchored position?
Apr ’24
Comment on Default RealityViewContent has multiple anchors?
Also I wonder If I want to add an empty Entity as common parent to serve as the parent of all my different game scenes. Say I have different levels and when I switch from level 1 to level 2, I just need to write level1.removeFromParent() and myCommonParent.addChild(level2) to control over the level switch. Can I implement this by adding content.add(myCommonParent)? Seems like this can still lead to the anchor issue. But if myCommonParent = AnchorEntity(.world), would that be possible?
Apr ’24
Comment on Default RealityViewContent has multiple anchors?
Thanks! That really reminds me to checkout AnchorComponent. Probably I need to manually set AnchorComponent to the .world? Since my mainGameScene right now is just a default empty scene. I have checked my "Root" object and contains only default Transform and Material Bindings. But I do will attach AnchorComponent to my scene to see if that could override some default or unstable settings.
Apr ’24