Add Constraint: Difference between revisions

Changed the link to the Constraint page
(Updated the page)
(Changed the link to the Constraint page)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
|output2={{Port|e|After}}
|output2={{Port|e|After}}
}}
}}
A constraint is an invisible connection between 2 objects. Like when you connect a wheel to a stick, or the rope bridges in drive mad.
 
You probably only want to do this once, [[Play Sensor|on Play]].
A [[constraint]] is an invisible connection between 2 [[object]]s.
For examble, the rope bridges in [[Drive Mad]] are implemented using constraints.
This script is usually called when the game starts using [[Play Sensor|on Play]].


== Notes ==
== Notes ==
Have you ever heard of hydraulics and motors? If not then let me explain it to you and the connection of it in this script:
Have you ever heard of hydraulics and motors? If not then let me explain it to you and the connection of it in this script:


Line 19: Line 22:
* Motor – the most common motor we know. It produces rotary movements. In Fancade we can produce something like it with the help of constraints and [[Angular Motor]]
* Motor – the most common motor we know. It produces rotary movements. In Fancade we can produce something like it with the help of constraints and [[Angular Motor]]


So, to be exact: [[Constraints]] are basically the relations of motors, pivotals, gears and springs!
So, to be exact: Constraints are basically the relations of motors, pivotals, gears and springs!


[[Category:Blocks]]
[[Category:Blocks]]