User:CodingAintFun/pagetest00: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Blanked the page)
Tag: Blanking
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{this is a|e0|name=phys_spring|engine=2}} It is a physically simulated spring. '''length''' is what's known as the "natural spring length". This is how long the spring would be if it was at rest (nothing hanging on it or attached). When you attach something to the spring, it will stretch longer than its natural length. The amount of stretch is determined by the spring constant '''constant'''. The larger the spring constant the less stretch in the spring.


== Keyvalues ==
{{KV|Entity 1|intn=attach1|target_destination|First entity to attach.}}
{{KV|Entity 2|intn=attach2|target_destination|Second entity to attach.}}
{{KV|Spring Axis|intn=springaxis|vecline|Use the helper. Drag it out to match the virtual spring.}}
{{KV|Spring Length|intn=length|string|How long the spring would be if it was at rest (nothing hanging on it or attached). 0 means the length of the brush.}}
{{KV|Spring Constant|intn=constant|string|Stiffness of the spring.  The larger the number the less the spring will stretch.}}
{{KV|Damping Constant|intn=damping|string|How much energy the spring loses.  The larger the number, the less bouncy the spring.}}
{{KV|Relative Damping Constant|intn=relativedamping|string|The amount of energy the spring loses proportional to the relative velocity of the two objects the spring is attached to.}}
{{KV|Break on Length|intn=breaklength|string|If the spring's length ever exceeds this length, the spring breaks.}}
{{KV Targetname}}
== Flags ==
* 1 : Force only on stretch
== Inputs ==
{{IO|SetSpringConstant|Set the Spring Constant.|param=float}}
{{IO|SetSpringLength|Set the Spring Length.|param=float}}
{{IO|SetSpringDamping|Set the Spring Damping.|param=float}}
{{I Targetname}}
== Outputs ==
{{O Targetname}}
[[Category:Constraints|C]]

Latest revision as of 13:15, 26 January 2024