diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/shared/rope_helpers.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/shared/rope_helpers.h')
| -rw-r--r-- | mp/src/game/shared/rope_helpers.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/mp/src/game/shared/rope_helpers.h b/mp/src/game/shared/rope_helpers.h index d82ef6e2..7a5ad781 100644 --- a/mp/src/game/shared/rope_helpers.h +++ b/mp/src/game/shared/rope_helpers.h @@ -1,42 +1,42 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef ROPE_HELPERS_H
-#define ROPE_HELPERS_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-#include "mathlib/vector.h"
-
-
-//
-// This function can help you choose starting conditions for your rope. It is fairly
-// expensive (slightly less than 0.5ms for a 10-node rope), but it's within reason for the
-// frequency we create ropes at.
-//
-// Input:
-// - rope endpoints
-// - the number of nodes the client will be simulating (CRopeKeyframe::m_nSegments)
-// - how low you want the rope to hang (below the lowest of the two endpoints)
-//
-// Output:
-// - pOutputLength = length of the rope
-// - pOutputSlack = slack you should set to produce the desired hang
-//
-void CalcRopeStartingConditions(
- const Vector &vStartPos,
- const Vector &vEndPos,
- int const nNodes,
- float const desiredHang,
- float *pOutputLength,
- float *pOutputSlack
- );
-
-
-#endif // ROPE_HELPERS_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef ROPE_HELPERS_H +#define ROPE_HELPERS_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "mathlib/vector.h" + + +// +// This function can help you choose starting conditions for your rope. It is fairly +// expensive (slightly less than 0.5ms for a 10-node rope), but it's within reason for the +// frequency we create ropes at. +// +// Input: +// - rope endpoints +// - the number of nodes the client will be simulating (CRopeKeyframe::m_nSegments) +// - how low you want the rope to hang (below the lowest of the two endpoints) +// +// Output: +// - pOutputLength = length of the rope +// - pOutputSlack = slack you should set to produce the desired hang +// +void CalcRopeStartingConditions( + const Vector &vStartPos, + const Vector &vEndPos, + int const nNodes, + float const desiredHang, + float *pOutputLength, + float *pOutputSlack + ); + + +#endif // ROPE_HELPERS_H |