Jump to content

Add Constraint: Difference between revisions

Changed the link to the Constraint page
(Created page with "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, on Play. /uploads/Add Constraint.png == 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: Hydraulic and Motors are both type of motors that produces different move...")
 
(Changed the link to the Constraint page)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
{{Block
You probably only want to do this once, [[Play Sensor|on Play]].
|image=Add Constraint.png
|folder=physics
|input1={{Port|e|Before}}
|input2={{Port|o|Base}}
|input3={{Port|o|Part}}
|input4={{Port|v|Pivot}}
|output1={{Port|c}}
|output2={{Port|e|After}}
}}


[[width=336px,alt=Add Constraint|/uploads/Add Constraint.png]]
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 11: 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]]