compare distance
Overview
Compares which one of two objects is closer to the third object.
Inputs
- Check
Performs a check.
Outputs
- target 1 is closer
Fires an event, if target 1 is closer to the object.
- target 2 is closer
Fires an event, if target 2 is closer to the object.
- equal
Fires an event, if the distance between both targets and the object is equal.
Refs
- target 1
First target to compare the distance to.
- target 2
Second target to compare the distance to.
- object
The object, to which the distance is measured.
Properties
- Threshold
Sensitivity threshold. If the difference between the distance to the object is smaller than this value, the block will fire the "equal" event.
Usage Examples
Â
In this example, the checker "compare distance" activates fire particles on the model of the barrel which is closer to the player, and on the model that is further away, on the contrary, it deactivates.
See also
Exodus SDK © 2005-2023, 4A Games Limited. Developed by 4A Games®.
4A Games® is a registered trademark, and 4A Games Limited, Exodus SDK and their respective logos are trademarks of 4A Games Limited.
Published by Deep Silver. Deep Silver is a division of PLAION GmbH, Austria. Deep Silver and Plaion are registered trademarks of PLAION GmbH.
Metro Exodus is inspired by the internationally best-selling novels METRO 2033 and METRO 2034 by Dmitry Glukhovsky.
All other trademarks, logos and copyrights are property of their respective owners. All rights reserved.
By using this site, downloading or using the Exodus SDK or related content, you are agreeing to be bound by the terms of the End User License Agreement.