Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Problem with proximity behavior

A newcomer!
Guest
Quote
2021-03-17 06:40:45

Hi

I wonder if it is caused by a mistake or it is a bug. I have attached a third person camera to a submarine model (which is static). Then I put a cube to test the proximity behavior. The action I determined was changing the scene.
And now the problem...
The problem is that when the submarine enters from the front of the cube the scene change (As expected). But when it enters from the behind, it should put itself in the middle of the cube in order to changing the scene!
So is it a bug? Or may be I am wrong?

Thanks in advance


just_in_case
Moderator
Quote
2021-03-18 00:46:41

This is due to the Pivot position of your submarine model. Proximity behavior actually is not based on collision detection on per vertex of model.it only detects the position of pivot.


A quick workaround for this is to create 2 empty nodes and position them in front and back of the submarine and then make them children of the submarine.

Now in you proximity behavior check the proximity with those empty nodes. You might need to create multiple instance of proximity behavior depending on the number of clones. And then it will work fine.

The other method is to reverse the proximity behavior instead of applying the proximity behavior to your cube, attach it to the submarine and check the proximity with cube.
You might need to adjust the proximity area according to the size of your submarine.

Hopefully these 2 Methods will fix your issue.


A newcomer!
Guest
Quote
2021-03-19 04:36:34

Hi again

Thanks for your answer @just_in_case
I tried the first method with adding node as you said. But nothing changed. Then I added another model with many nodes. The result was the same. Nothing!
I prefer the second method. Because this solved the problem.



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact