Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Generic6DoFSpringConstraint.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Paradox.Physics
4 {
6  {
7  internal BulletSharp.Generic6DofSpringConstraint InternalGeneric6DofSpringConstraint;
8 
9  /// <summary>
10  /// Enables the spring.
11  /// </summary>
12  /// <param name="index">The index.</param>
13  /// <param name="onOff">if set to <c>true</c> [on off].</param>
14  public void EnableSpring(int index, bool onOff)
15  {
16  InternalGeneric6DofSpringConstraint.EnableSpring(index, onOff);
17  }
18 
19  /// <summary>
20  /// Sets the damping.
21  /// </summary>
22  /// <param name="index">The index.</param>
23  /// <param name="damping">The damping.</param>
24  public void SetDamping(int index, float damping)
25  {
26  InternalGeneric6DofSpringConstraint.SetDamping(index, damping);
27  }
28 
29  /// <summary>
30  /// Sets the equilibrium point.
31  /// </summary>
32  /// <param name="index">The index.</param>
33  /// <param name="val">The value.</param>
34  public void SetEquilibriumPoint(int index, float val)
35  {
36  InternalGeneric6DofSpringConstraint.SetEquilibriumPoint(index, val);
37  }
38 
39  /// <summary>
40  /// Sets the stiffness.
41  /// </summary>
42  /// <param name="index">The index.</param>
43  /// <param name="stiffness">The stiffness.</param>
44  public void SetStiffness(int index, float stiffness)
45  {
46  InternalGeneric6DofSpringConstraint.SetStiffness(index, stiffness);
47  }
48  }
49 }
void SetStiffness(int index, float stiffness)
Sets the stiffness.
void SetDamping(int index, float damping)
Sets the damping.
void SetEquilibriumPoint(int index, float val)
Sets the equilibrium point.
using SiliconStudio.Paradox. Physics
void EnableSpring(int index, bool onOff)
Enables the spring.