0
Answered

Destroy Object

Jacob 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 4

Is this how a destroy object on collision graph should look? The cube is not being destroyed, it is just sinking through the ground (just a box collider)




Is there a library of simple graphs like this? As a new user my first need is to be able to replicate what i know how to do in unity, but with bolt. I would like to see, simple movement controllers, collision and trigger examples, input and arrays.. the basics.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Jacob 2 years ago

Can;t find the edit button. TO be clear, one cube strikes another cube, both with the cube tag, and instead of being destroyed, they are sinking through the ground after collision

+1
Answered

That's because you should use Get Game Object between Collider and Obj, because right now you're destroying the Collider component on the GameObject, not the parent game object.

The compare tag unit is not being run after the collision enter in the above attachment, so it would error. Anyone know if there is a way to handle collision enter events in 3D?

+1

Hi Amor! Yes, that unit will get run, because Bolt can detect that the value is needed and infer that it needs "lazy" evaluation (fetching). This technique should work in 3D. If you have an error, please start a new thread.