aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/jigglebones.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/jigglebones.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/jigglebones.h')
-rw-r--r--sp/src/public/jigglebones.h164
1 files changed, 82 insertions, 82 deletions
diff --git a/sp/src/public/jigglebones.h b/sp/src/public/jigglebones.h
index 7a28c928..57afdaa7 100644
--- a/sp/src/public/jigglebones.h
+++ b/sp/src/public/jigglebones.h
@@ -1,82 +1,82 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $NoKeywords: $
-//=============================================================================//
-#ifndef C_JIGGLEBONES_H
-#define C_JIGGLEBONES_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "studio.h"
-#include "utlvector.h"
-#include "utllinkedlist.h"
-
-//-----------------------------------------------------------------------------
-/**
- * JiggleData is the instance-specific data for a jiggle bone
- */
-struct JiggleData
-{
- void Init( int initBone, float currenttime, const Vector &initBasePos, const Vector &initTipPos )
- {
- bone = initBone;
-
- lastUpdate = currenttime;
-
- basePos = initBasePos;
- baseLastPos = basePos;
- baseVel.Init();
- baseAccel.Init();
-
- tipPos = initTipPos;
- tipVel.Init();
- tipAccel.Init();
-
- lastLeft = Vector( 0, 0, 0 );
-
- lastBoingPos = initBasePos;
- boingDir = Vector( 0.0f, 0.0f, 1.0f );
- boingVelDir.Init();
- boingSpeed = 0.0f;
- boingTime = 0.0f;
- }
-
- int bone;
-
- float lastUpdate; // based on gpGlobals->realtime
-
- Vector basePos; // position of the base of the jiggle bone
- Vector baseLastPos;
- Vector baseVel;
- Vector baseAccel;
-
- Vector tipPos; // position of the tip of the jiggle bone
- Vector tipVel;
- Vector tipAccel;
- Vector lastLeft; // previous up vector
-
- Vector lastBoingPos; // position of base of jiggle bone last update for tracking velocity
- Vector boingDir; // current direction along which the boing effect is occurring
- Vector boingVelDir; // current estimation of jiggle bone unit velocity vector for boing effect
- float boingSpeed; // current estimation of jiggle bone speed for boing effect
- float boingTime;
-};
-
-class CJiggleBones
-{
-public:
- JiggleData * GetJiggleData( int bone, float currenttime, const Vector &initBasePos, const Vector &initTipPos );
- void BuildJiggleTransformations( int boneIndex, float currentime, const mstudiojigglebone_t *jiggleParams, const matrix3x4_t &goalMX, matrix3x4_t &boneMX );
-
- CUtlLinkedList< JiggleData > m_jiggleBoneState;
-};
-
-
-extern void DevMsgRT( PRINTF_FORMAT_STRING char const* pMsg, ... );
-
-#endif // C_BASEANIMATING_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $NoKeywords: $
+//=============================================================================//
+#ifndef C_JIGGLEBONES_H
+#define C_JIGGLEBONES_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "studio.h"
+#include "utlvector.h"
+#include "utllinkedlist.h"
+
+//-----------------------------------------------------------------------------
+/**
+ * JiggleData is the instance-specific data for a jiggle bone
+ */
+struct JiggleData
+{
+ void Init( int initBone, float currenttime, const Vector &initBasePos, const Vector &initTipPos )
+ {
+ bone = initBone;
+
+ lastUpdate = currenttime;
+
+ basePos = initBasePos;
+ baseLastPos = basePos;
+ baseVel.Init();
+ baseAccel.Init();
+
+ tipPos = initTipPos;
+ tipVel.Init();
+ tipAccel.Init();
+
+ lastLeft = Vector( 0, 0, 0 );
+
+ lastBoingPos = initBasePos;
+ boingDir = Vector( 0.0f, 0.0f, 1.0f );
+ boingVelDir.Init();
+ boingSpeed = 0.0f;
+ boingTime = 0.0f;
+ }
+
+ int bone;
+
+ float lastUpdate; // based on gpGlobals->realtime
+
+ Vector basePos; // position of the base of the jiggle bone
+ Vector baseLastPos;
+ Vector baseVel;
+ Vector baseAccel;
+
+ Vector tipPos; // position of the tip of the jiggle bone
+ Vector tipVel;
+ Vector tipAccel;
+ Vector lastLeft; // previous up vector
+
+ Vector lastBoingPos; // position of base of jiggle bone last update for tracking velocity
+ Vector boingDir; // current direction along which the boing effect is occurring
+ Vector boingVelDir; // current estimation of jiggle bone unit velocity vector for boing effect
+ float boingSpeed; // current estimation of jiggle bone speed for boing effect
+ float boingTime;
+};
+
+class CJiggleBones
+{
+public:
+ JiggleData * GetJiggleData( int bone, float currenttime, const Vector &initBasePos, const Vector &initTipPos );
+ void BuildJiggleTransformations( int boneIndex, float currentime, const mstudiojigglebone_t *jiggleParams, const matrix3x4_t &goalMX, matrix3x4_t &boneMX );
+
+ CUtlLinkedList< JiggleData > m_jiggleBoneState;
+};
+
+
+extern void DevMsgRT( PRINTF_FORMAT_STRING char const* pMsg, ... );
+
+#endif // C_BASEANIMATING_H