Set Locked: Difference between revisions

m
Substitute to infobox and <code> tags
(Created page with "Restricts a physical object's movement. 0 means completely locked and 1 means free-to-move. E.g. passing `1,0,1` to the Position input will lock an object in the X/Z plane, and passing `0,0,1` to the Rotation input will only allow it to rotate around the Z axis. /uploads/Set Locked.png It is a force multiplier, so any values can be used. Using numbers such as `0.5,0.5,0.5` will make the object react to physics 50% less than normal. Negati...")
 
m (Substitute to infobox and <code> tags)
Line 1: Line 1:
Restricts a physical object's movement. 0 means completely locked and 1 means free-to-move. E.g. passing `1,0,1` to the Position input will lock an object in the X/Z plane, and passing `0,0,1` to the Rotation input will only allow it to rotate around the Z axis.
{{Block
|image=Set_Locked.png
|type=s
|folder=Physics
|input1={{Port|e|Before}}
|input2={{Port|o}}
|input3={{Port|v|Position}}
|input4={{Port|v|Rotation}}
|output1={{Port|e|After}}
}}


[[width=336px,alt=Set Locked|/uploads/Set Locked.png]]
Restricts a physical object's movement. 0 means completely locked and 1 means free-to-move. E.g. passing <code>1, 0, 1</code> to the Position input will lock an object in the X/Z plane, and passing <code>0, 0, 1</code> to the Rotation input will only allow it to rotate around the Z axis.


It is a force multiplier, so any values can be used.
It is a force multiplier, so any values can be used.
Using numbers such as `0.5,0.5,0.5` will make the object react to physics 50% less than normal. Negative numbers reverse physics and numbers bigger than 1 increase them.
Using numbers such as <code>0.5, 0.5, 0.5</code> will make the object react to physics 50% less than normal. Negative numbers reverse physics and numbers bigger than 1 increase them.
 


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