1
$\begingroup$

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.

$\endgroup$
2
$\begingroup$

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

$\endgroup$
  • $\begingroup$ Is this also pssible with a particle system? Meaning a particle touches the obkect and the object transforms. $\endgroup$ – schustudrai Jan 25 '16 at 8:27
  • $\begingroup$ So you want the action to be applied when the particle system touch the object? $\endgroup$ – Omar Ahmad Jan 25 '16 at 9:02
  • $\begingroup$ Exacly: A particle hits, an action is performed. $\endgroup$ – schustudrai Jan 25 '16 at 10:30
  • $\begingroup$ 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. $\endgroup$ – Omar Ahmad Jan 25 '16 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.