Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GearConstraint.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 using SiliconStudio.Core.Mathematics;
4 
5 namespace SiliconStudio.Paradox.Physics
6 {
7  public class GearConstraint : Constraint
8  {
9  internal BulletSharp.GearConstraint InternalGearConstraint;
10 
11  /// <summary>
12  /// Gets or sets the axis a.
13  /// </summary>
14  /// <value>
15  /// The axis a.
16  /// </value>
17  public Vector3 AxisA
18  {
19  get { return InternalGearConstraint.AxisA; }
20  set { InternalGearConstraint.AxisA = value; }
21  }
22 
23  /// <summary>
24  /// Gets or sets the axis b.
25  /// </summary>
26  /// <value>
27  /// The axis b.
28  /// </value>
29  public Vector3 AxisB
30  {
31  get { return InternalGearConstraint.AxisB; }
32  set { InternalGearConstraint.AxisB = value; }
33  }
34 
35  /// <summary>
36  /// Gets or sets the ratio.
37  /// </summary>
38  /// <value>
39  /// The ratio.
40  /// </value>
41  public float Ratio
42  {
43  get { return InternalGearConstraint.Ratio; }
44  set { InternalGearConstraint.Ratio = value; }
45  }
46  }
47 }
Represents a three dimensional mathematical vector.
Definition: Vector3.cs:42
using SiliconStudio.Paradox. Physics