Files
2026-06-04 11:42:34 +02:00

138 lines
3.6 KiB
C#

using System;
using System.Runtime.CompilerServices;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x0200019A RID: 410
public sealed class HingeJoint2D : AnchoredJoint2D
{
// Token: 0x170006C1 RID: 1729
// (get) Token: 0x06001E7C RID: 7804
// (set) Token: 0x06001E7D RID: 7805
public extern bool useMotor
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170006C2 RID: 1730
// (get) Token: 0x06001E7E RID: 7806
// (set) Token: 0x06001E7F RID: 7807
public extern bool useLimits
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170006C3 RID: 1731
// (get) Token: 0x06001E80 RID: 7808 RVA: 0x00025828 File Offset: 0x00023A28
// (set) Token: 0x06001E81 RID: 7809 RVA: 0x00025848 File Offset: 0x00023A48
public JointMotor2D motor
{
get
{
JointMotor2D jointMotor2D;
this.INTERNAL_get_motor(out jointMotor2D);
return jointMotor2D;
}
set
{
this.INTERNAL_set_motor(ref value);
}
}
// Token: 0x06001E82 RID: 7810
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_motor(out JointMotor2D value);
// Token: 0x06001E83 RID: 7811
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_set_motor(ref JointMotor2D value);
// Token: 0x170006C4 RID: 1732
// (get) Token: 0x06001E84 RID: 7812 RVA: 0x00025854 File Offset: 0x00023A54
// (set) Token: 0x06001E85 RID: 7813 RVA: 0x00025874 File Offset: 0x00023A74
public JointAngleLimits2D limits
{
get
{
JointAngleLimits2D jointAngleLimits2D;
this.INTERNAL_get_limits(out jointAngleLimits2D);
return jointAngleLimits2D;
}
set
{
this.INTERNAL_set_limits(ref value);
}
}
// Token: 0x06001E86 RID: 7814
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_limits(out JointAngleLimits2D value);
// Token: 0x06001E87 RID: 7815
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_set_limits(ref JointAngleLimits2D value);
// Token: 0x170006C5 RID: 1733
// (get) Token: 0x06001E88 RID: 7816
public extern JointLimitState2D limitState
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x170006C6 RID: 1734
// (get) Token: 0x06001E89 RID: 7817
public extern float referenceAngle
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x170006C7 RID: 1735
// (get) Token: 0x06001E8A RID: 7818
public extern float jointAngle
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x170006C8 RID: 1736
// (get) Token: 0x06001E8B RID: 7819
public extern float jointSpeed
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x06001E8C RID: 7820 RVA: 0x00025880 File Offset: 0x00023A80
public float GetMotorTorque(float timeStep)
{
return HingeJoint2D.INTERNAL_CALL_GetMotorTorque(this, timeStep);
}
// Token: 0x06001E8D RID: 7821
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern float INTERNAL_CALL_GetMotorTorque(HingeJoint2D self, float timeStep);
}
}