3
$\begingroup$

How to to restrict the translation (or rotation) in Z axis for a length (yellow line) and activate it after (blue line)? Using only logic bricks.

movement

$\endgroup$
3
$\begingroup$

You will need to add a Float property to the 'yellow' area. I called mine "Bar". no reason. (if it isn't area you want to determine it by then skip this step and go with a Delay sensor rather than Collision, Near, or Ray)

Use a Collision, Near, or Ray (depending on your preferences and needs)sensor to determine when the "Bar" property is close enough to invoke the constraint behavior.

Via an And controller, link your sensor to a Constraint actuator and set the axis based on whatever axis is "up" in your diagram. Turn on true level triggering on the sensor.

Finished results!

$\endgroup$

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.