Hi everyone,
I am trying to combine two walls at a specific position with respect to the first wall. But I am really stuck.
Below is the overview of what I am trying to achieve
These are the two models of walls rendered
Then I do Collision detection
Then I add it to a group. But they overlay on top of each other.
Below is what i am trying to achieve
Can some one please guide me on how to achieve it?
Pseudo code:
If Collision detected then
group them at a specific position (this is where I am really stuck at)
I have tried setting the position of the Orange wall to White wall’s Frame’s position. But it didn’t work. It just translates along when the collision is detected.
Both the models are group of Meshes with buffer geometry type.
I’ll be highly grateful if someone can help me here.
Thanks