1

I want an object to do something if another object collides with it, very similar to the "Collision"-logic-brick in the bge. Is there any way to use a similar method in another engine? I am aware of a python command collision. Maybe it can integrated into a driver.

schustudrai
  • 666
  • 1
  • 6
  • 22

1 Answers1

2

I dont know about the blender logic operations but this is what I can do in this case:

  • Add a driver for the operation you want to apply to the object.

  • Add a distance variable and set the object to itself and the other object.

  • Add a custom property and call it margin which will be the margin of the object (the distance in which the object will interact from the origin point).

  • Add this custom property to a single property variable.

  • Type "ternary conditional operator" like this in the expression.

  • Now when ever the "Cube.001" touch the "cube" the scale will change to 2 instead of 1 (and of course you can change the operation)

Driver

Here is the result

Omar Emara
  • 22,639
  • 5
  • 55
  • 103
  • Is this also pssible with a particle system? Meaning a particle touches the obkect and the object transforms. – schustudrai Jan 25 '16 at 08:27
  • So you want the action to be applied when the particle system touch the object? – Omar Emara Jan 25 '16 at 09:02
  • Exacly: A particle hits, an action is performed. – schustudrai Jan 25 '16 at 10:30
  • I can't think of a solution other than scripting,But if you want to apply this action based on the location of the particle in a material or something,you may want to try dynamic paint. – Omar Emara Jan 25 '16 at 11:51
  • There are great solutions over here: There are some great solutions here: https://blender.stackexchange.com/questions/71289/using-overlap-to-check-if-two-meshes-are-intersecting/ – Adam Jul 06 '19 at 02:05