857 lines
28 KiB
C#
857 lines
28 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000165 RID: 357
|
|
[RequireComponent(typeof(Transform))]
|
|
public sealed class Rigidbody : Component
|
|
{
|
|
// Token: 0x17000593 RID: 1427
|
|
// (get) Token: 0x060019F0 RID: 6640 RVA: 0x00020B70 File Offset: 0x0001ED70
|
|
// (set) Token: 0x060019F1 RID: 6641 RVA: 0x00020B90 File Offset: 0x0001ED90
|
|
public Vector3 velocity
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_velocity(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_velocity(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060019F2 RID: 6642
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_velocity(out Vector3 value);
|
|
|
|
// Token: 0x060019F3 RID: 6643
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_velocity(ref Vector3 value);
|
|
|
|
// Token: 0x17000594 RID: 1428
|
|
// (get) Token: 0x060019F4 RID: 6644 RVA: 0x00020B9C File Offset: 0x0001ED9C
|
|
// (set) Token: 0x060019F5 RID: 6645 RVA: 0x00020BBC File Offset: 0x0001EDBC
|
|
public Vector3 angularVelocity
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_angularVelocity(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_angularVelocity(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060019F6 RID: 6646
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_angularVelocity(out Vector3 value);
|
|
|
|
// Token: 0x060019F7 RID: 6647
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_angularVelocity(ref Vector3 value);
|
|
|
|
// Token: 0x17000595 RID: 1429
|
|
// (get) Token: 0x060019F8 RID: 6648
|
|
// (set) Token: 0x060019F9 RID: 6649
|
|
public extern float drag
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000596 RID: 1430
|
|
// (get) Token: 0x060019FA RID: 6650
|
|
// (set) Token: 0x060019FB RID: 6651
|
|
public extern float angularDrag
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000597 RID: 1431
|
|
// (get) Token: 0x060019FC RID: 6652
|
|
// (set) Token: 0x060019FD RID: 6653
|
|
public extern float mass
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x060019FE RID: 6654 RVA: 0x00020BC8 File Offset: 0x0001EDC8
|
|
public void SetDensity(float density)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_SetDensity(this, density);
|
|
}
|
|
|
|
// Token: 0x060019FF RID: 6655
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_SetDensity(Rigidbody self, float density);
|
|
|
|
// Token: 0x17000598 RID: 1432
|
|
// (get) Token: 0x06001A00 RID: 6656
|
|
// (set) Token: 0x06001A01 RID: 6657
|
|
public extern bool useGravity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000599 RID: 1433
|
|
// (get) Token: 0x06001A02 RID: 6658
|
|
// (set) Token: 0x06001A03 RID: 6659
|
|
public extern float maxDepenetrationVelocity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700059A RID: 1434
|
|
// (get) Token: 0x06001A04 RID: 6660
|
|
// (set) Token: 0x06001A05 RID: 6661
|
|
public extern bool isKinematic
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700059B RID: 1435
|
|
// (get) Token: 0x06001A06 RID: 6662
|
|
// (set) Token: 0x06001A07 RID: 6663
|
|
public extern bool freezeRotation
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700059C RID: 1436
|
|
// (get) Token: 0x06001A08 RID: 6664
|
|
// (set) Token: 0x06001A09 RID: 6665
|
|
public extern RigidbodyConstraints constraints
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700059D RID: 1437
|
|
// (get) Token: 0x06001A0A RID: 6666
|
|
// (set) Token: 0x06001A0B RID: 6667
|
|
public extern CollisionDetectionMode collisionDetectionMode
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001A0C RID: 6668 RVA: 0x00020BD4 File Offset: 0x0001EDD4
|
|
public void AddForce(Vector3 force, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_AddForce(this, ref force, mode);
|
|
}
|
|
|
|
// Token: 0x06001A0D RID: 6669 RVA: 0x00020BE0 File Offset: 0x0001EDE0
|
|
[ExcludeFromDocs]
|
|
public void AddForce(Vector3 force)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
Rigidbody.INTERNAL_CALL_AddForce(this, ref force, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A0E RID: 6670
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddForce(Rigidbody self, ref Vector3 force, ForceMode mode);
|
|
|
|
// Token: 0x06001A0F RID: 6671 RVA: 0x00020BFC File Offset: 0x0001EDFC
|
|
[ExcludeFromDocs]
|
|
public void AddForce(float x, float y, float z)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
this.AddForce(x, y, z, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A10 RID: 6672 RVA: 0x00020C18 File Offset: 0x0001EE18
|
|
public void AddForce(float x, float y, float z, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
this.AddForce(new Vector3(x, y, z), mode);
|
|
}
|
|
|
|
// Token: 0x06001A11 RID: 6673 RVA: 0x00020C2C File Offset: 0x0001EE2C
|
|
public void AddRelativeForce(Vector3 force, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_AddRelativeForce(this, ref force, mode);
|
|
}
|
|
|
|
// Token: 0x06001A12 RID: 6674 RVA: 0x00020C38 File Offset: 0x0001EE38
|
|
[ExcludeFromDocs]
|
|
public void AddRelativeForce(Vector3 force)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
Rigidbody.INTERNAL_CALL_AddRelativeForce(this, ref force, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A13 RID: 6675
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddRelativeForce(Rigidbody self, ref Vector3 force, ForceMode mode);
|
|
|
|
// Token: 0x06001A14 RID: 6676 RVA: 0x00020C54 File Offset: 0x0001EE54
|
|
[ExcludeFromDocs]
|
|
public void AddRelativeForce(float x, float y, float z)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
this.AddRelativeForce(x, y, z, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A15 RID: 6677 RVA: 0x00020C70 File Offset: 0x0001EE70
|
|
public void AddRelativeForce(float x, float y, float z, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
this.AddRelativeForce(new Vector3(x, y, z), mode);
|
|
}
|
|
|
|
// Token: 0x06001A16 RID: 6678 RVA: 0x00020C84 File Offset: 0x0001EE84
|
|
public void AddTorque(Vector3 torque, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_AddTorque(this, ref torque, mode);
|
|
}
|
|
|
|
// Token: 0x06001A17 RID: 6679 RVA: 0x00020C90 File Offset: 0x0001EE90
|
|
[ExcludeFromDocs]
|
|
public void AddTorque(Vector3 torque)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
Rigidbody.INTERNAL_CALL_AddTorque(this, ref torque, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A18 RID: 6680
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddTorque(Rigidbody self, ref Vector3 torque, ForceMode mode);
|
|
|
|
// Token: 0x06001A19 RID: 6681 RVA: 0x00020CAC File Offset: 0x0001EEAC
|
|
[ExcludeFromDocs]
|
|
public void AddTorque(float x, float y, float z)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
this.AddTorque(x, y, z, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A1A RID: 6682 RVA: 0x00020CC8 File Offset: 0x0001EEC8
|
|
public void AddTorque(float x, float y, float z, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
this.AddTorque(new Vector3(x, y, z), mode);
|
|
}
|
|
|
|
// Token: 0x06001A1B RID: 6683 RVA: 0x00020CDC File Offset: 0x0001EEDC
|
|
public void AddRelativeTorque(Vector3 torque, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_AddRelativeTorque(this, ref torque, mode);
|
|
}
|
|
|
|
// Token: 0x06001A1C RID: 6684 RVA: 0x00020CE8 File Offset: 0x0001EEE8
|
|
[ExcludeFromDocs]
|
|
public void AddRelativeTorque(Vector3 torque)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
Rigidbody.INTERNAL_CALL_AddRelativeTorque(this, ref torque, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A1D RID: 6685
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddRelativeTorque(Rigidbody self, ref Vector3 torque, ForceMode mode);
|
|
|
|
// Token: 0x06001A1E RID: 6686 RVA: 0x00020D04 File Offset: 0x0001EF04
|
|
[ExcludeFromDocs]
|
|
public void AddRelativeTorque(float x, float y, float z)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
this.AddRelativeTorque(x, y, z, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A1F RID: 6687 RVA: 0x00020D20 File Offset: 0x0001EF20
|
|
public void AddRelativeTorque(float x, float y, float z, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
this.AddRelativeTorque(new Vector3(x, y, z), mode);
|
|
}
|
|
|
|
// Token: 0x06001A20 RID: 6688 RVA: 0x00020D34 File Offset: 0x0001EF34
|
|
public void AddForceAtPosition(Vector3 force, Vector3 position, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_AddForceAtPosition(this, ref force, ref position, mode);
|
|
}
|
|
|
|
// Token: 0x06001A21 RID: 6689 RVA: 0x00020D44 File Offset: 0x0001EF44
|
|
[ExcludeFromDocs]
|
|
public void AddForceAtPosition(Vector3 force, Vector3 position)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
Rigidbody.INTERNAL_CALL_AddForceAtPosition(this, ref force, ref position, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A22 RID: 6690
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddForceAtPosition(Rigidbody self, ref Vector3 force, ref Vector3 position, ForceMode mode);
|
|
|
|
// Token: 0x06001A23 RID: 6691 RVA: 0x00020D60 File Offset: 0x0001EF60
|
|
public void AddExplosionForce(float explosionForce, Vector3 explosionPosition, float explosionRadius, [DefaultValue("0.0F")] float upwardsModifier, [DefaultValue("ForceMode.Force")] ForceMode mode)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_AddExplosionForce(this, explosionForce, ref explosionPosition, explosionRadius, upwardsModifier, mode);
|
|
}
|
|
|
|
// Token: 0x06001A24 RID: 6692 RVA: 0x00020D74 File Offset: 0x0001EF74
|
|
[ExcludeFromDocs]
|
|
public void AddExplosionForce(float explosionForce, Vector3 explosionPosition, float explosionRadius, float upwardsModifier)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
Rigidbody.INTERNAL_CALL_AddExplosionForce(this, explosionForce, ref explosionPosition, explosionRadius, upwardsModifier, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A25 RID: 6693 RVA: 0x00020D94 File Offset: 0x0001EF94
|
|
[ExcludeFromDocs]
|
|
public void AddExplosionForce(float explosionForce, Vector3 explosionPosition, float explosionRadius)
|
|
{
|
|
ForceMode forceMode = ForceMode.Force;
|
|
float num = 0f;
|
|
Rigidbody.INTERNAL_CALL_AddExplosionForce(this, explosionForce, ref explosionPosition, explosionRadius, num, forceMode);
|
|
}
|
|
|
|
// Token: 0x06001A26 RID: 6694
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddExplosionForce(Rigidbody self, float explosionForce, ref Vector3 explosionPosition, float explosionRadius, float upwardsModifier, ForceMode mode);
|
|
|
|
// Token: 0x06001A27 RID: 6695 RVA: 0x00020DB8 File Offset: 0x0001EFB8
|
|
public Vector3 ClosestPointOnBounds(Vector3 position)
|
|
{
|
|
Vector3 vector;
|
|
Rigidbody.INTERNAL_CALL_ClosestPointOnBounds(this, ref position, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001A28 RID: 6696
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_ClosestPointOnBounds(Rigidbody self, ref Vector3 position, out Vector3 value);
|
|
|
|
// Token: 0x06001A29 RID: 6697 RVA: 0x00020DD8 File Offset: 0x0001EFD8
|
|
public Vector3 GetRelativePointVelocity(Vector3 relativePoint)
|
|
{
|
|
Vector3 vector;
|
|
Rigidbody.INTERNAL_CALL_GetRelativePointVelocity(this, ref relativePoint, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001A2A RID: 6698
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_GetRelativePointVelocity(Rigidbody self, ref Vector3 relativePoint, out Vector3 value);
|
|
|
|
// Token: 0x06001A2B RID: 6699 RVA: 0x00020DF8 File Offset: 0x0001EFF8
|
|
public Vector3 GetPointVelocity(Vector3 worldPoint)
|
|
{
|
|
Vector3 vector;
|
|
Rigidbody.INTERNAL_CALL_GetPointVelocity(this, ref worldPoint, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001A2C RID: 6700
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_GetPointVelocity(Rigidbody self, ref Vector3 worldPoint, out Vector3 value);
|
|
|
|
// Token: 0x1700059E RID: 1438
|
|
// (get) Token: 0x06001A2D RID: 6701 RVA: 0x00020E18 File Offset: 0x0001F018
|
|
// (set) Token: 0x06001A2E RID: 6702 RVA: 0x00020E38 File Offset: 0x0001F038
|
|
public Vector3 centerOfMass
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_centerOfMass(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_centerOfMass(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A2F RID: 6703
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_centerOfMass(out Vector3 value);
|
|
|
|
// Token: 0x06001A30 RID: 6704
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_centerOfMass(ref Vector3 value);
|
|
|
|
// Token: 0x1700059F RID: 1439
|
|
// (get) Token: 0x06001A31 RID: 6705 RVA: 0x00020E44 File Offset: 0x0001F044
|
|
public Vector3 worldCenterOfMass
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_worldCenterOfMass(out vector);
|
|
return vector;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A32 RID: 6706
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_worldCenterOfMass(out Vector3 value);
|
|
|
|
// Token: 0x170005A0 RID: 1440
|
|
// (get) Token: 0x06001A33 RID: 6707 RVA: 0x00020E64 File Offset: 0x0001F064
|
|
// (set) Token: 0x06001A34 RID: 6708 RVA: 0x00020E84 File Offset: 0x0001F084
|
|
public Quaternion inertiaTensorRotation
|
|
{
|
|
get
|
|
{
|
|
Quaternion quaternion;
|
|
this.INTERNAL_get_inertiaTensorRotation(out quaternion);
|
|
return quaternion;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_inertiaTensorRotation(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A35 RID: 6709
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_inertiaTensorRotation(out Quaternion value);
|
|
|
|
// Token: 0x06001A36 RID: 6710
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_inertiaTensorRotation(ref Quaternion value);
|
|
|
|
// Token: 0x170005A1 RID: 1441
|
|
// (get) Token: 0x06001A37 RID: 6711 RVA: 0x00020E90 File Offset: 0x0001F090
|
|
// (set) Token: 0x06001A38 RID: 6712 RVA: 0x00020EB0 File Offset: 0x0001F0B0
|
|
public Vector3 inertiaTensor
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_inertiaTensor(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_inertiaTensor(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A39 RID: 6713
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_inertiaTensor(out Vector3 value);
|
|
|
|
// Token: 0x06001A3A RID: 6714
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_inertiaTensor(ref Vector3 value);
|
|
|
|
// Token: 0x170005A2 RID: 1442
|
|
// (get) Token: 0x06001A3B RID: 6715
|
|
// (set) Token: 0x06001A3C RID: 6716
|
|
public extern bool detectCollisions
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005A3 RID: 1443
|
|
// (get) Token: 0x06001A3D RID: 6717
|
|
// (set) Token: 0x06001A3E RID: 6718
|
|
[Obsolete("Cone friction is no longer supported.")]
|
|
public extern bool useConeFriction
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005A4 RID: 1444
|
|
// (get) Token: 0x06001A3F RID: 6719 RVA: 0x00020EBC File Offset: 0x0001F0BC
|
|
// (set) Token: 0x06001A40 RID: 6720 RVA: 0x00020EDC File Offset: 0x0001F0DC
|
|
public Vector3 position
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_position(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_position(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A41 RID: 6721
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_position(out Vector3 value);
|
|
|
|
// Token: 0x06001A42 RID: 6722
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_position(ref Vector3 value);
|
|
|
|
// Token: 0x170005A5 RID: 1445
|
|
// (get) Token: 0x06001A43 RID: 6723 RVA: 0x00020EE8 File Offset: 0x0001F0E8
|
|
// (set) Token: 0x06001A44 RID: 6724 RVA: 0x00020F08 File Offset: 0x0001F108
|
|
public Quaternion rotation
|
|
{
|
|
get
|
|
{
|
|
Quaternion quaternion;
|
|
this.INTERNAL_get_rotation(out quaternion);
|
|
return quaternion;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_rotation(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001A45 RID: 6725
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_rotation(out Quaternion value);
|
|
|
|
// Token: 0x06001A46 RID: 6726
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_rotation(ref Quaternion value);
|
|
|
|
// Token: 0x06001A47 RID: 6727 RVA: 0x00020F14 File Offset: 0x0001F114
|
|
public void MovePosition(Vector3 position)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_MovePosition(this, ref position);
|
|
}
|
|
|
|
// Token: 0x06001A48 RID: 6728
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_MovePosition(Rigidbody self, ref Vector3 position);
|
|
|
|
// Token: 0x06001A49 RID: 6729 RVA: 0x00020F20 File Offset: 0x0001F120
|
|
public void MoveRotation(Quaternion rot)
|
|
{
|
|
Rigidbody.INTERNAL_CALL_MoveRotation(this, ref rot);
|
|
}
|
|
|
|
// Token: 0x06001A4A RID: 6730
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_MoveRotation(Rigidbody self, ref Quaternion rot);
|
|
|
|
// Token: 0x170005A6 RID: 1446
|
|
// (get) Token: 0x06001A4B RID: 6731
|
|
// (set) Token: 0x06001A4C RID: 6732
|
|
public extern RigidbodyInterpolation interpolation
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001A4D RID: 6733 RVA: 0x00020F2C File Offset: 0x0001F12C
|
|
public void Sleep()
|
|
{
|
|
Rigidbody.INTERNAL_CALL_Sleep(this);
|
|
}
|
|
|
|
// Token: 0x06001A4E RID: 6734
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Sleep(Rigidbody self);
|
|
|
|
// Token: 0x06001A4F RID: 6735 RVA: 0x00020F38 File Offset: 0x0001F138
|
|
public bool IsSleeping()
|
|
{
|
|
return Rigidbody.INTERNAL_CALL_IsSleeping(this);
|
|
}
|
|
|
|
// Token: 0x06001A50 RID: 6736
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_IsSleeping(Rigidbody self);
|
|
|
|
// Token: 0x06001A51 RID: 6737 RVA: 0x00020F54 File Offset: 0x0001F154
|
|
public void WakeUp()
|
|
{
|
|
Rigidbody.INTERNAL_CALL_WakeUp(this);
|
|
}
|
|
|
|
// Token: 0x06001A52 RID: 6738
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_WakeUp(Rigidbody self);
|
|
|
|
// Token: 0x06001A53 RID: 6739 RVA: 0x00020F60 File Offset: 0x0001F160
|
|
public void ResetCenterOfMass()
|
|
{
|
|
Rigidbody.INTERNAL_CALL_ResetCenterOfMass(this);
|
|
}
|
|
|
|
// Token: 0x06001A54 RID: 6740
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_ResetCenterOfMass(Rigidbody self);
|
|
|
|
// Token: 0x06001A55 RID: 6741 RVA: 0x00020F6C File Offset: 0x0001F16C
|
|
public void ResetInertiaTensor()
|
|
{
|
|
Rigidbody.INTERNAL_CALL_ResetInertiaTensor(this);
|
|
}
|
|
|
|
// Token: 0x06001A56 RID: 6742
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_ResetInertiaTensor(Rigidbody self);
|
|
|
|
// Token: 0x170005A7 RID: 1447
|
|
// (get) Token: 0x06001A57 RID: 6743
|
|
// (set) Token: 0x06001A58 RID: 6744
|
|
public extern int solverIterations
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005A8 RID: 1448
|
|
// (get) Token: 0x06001A59 RID: 6745 RVA: 0x00020F78 File Offset: 0x0001F178
|
|
// (set) Token: 0x06001A5A RID: 6746 RVA: 0x00020F94 File Offset: 0x0001F194
|
|
[Obsolete("Please use Rigidbody.solverIterations instead. (UnityUpgradable) -> solverIterations")]
|
|
public int solverIterationCount
|
|
{
|
|
get
|
|
{
|
|
return this.solverIterations;
|
|
}
|
|
set
|
|
{
|
|
this.solverIterations = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170005A9 RID: 1449
|
|
// (get) Token: 0x06001A5B RID: 6747
|
|
// (set) Token: 0x06001A5C RID: 6748
|
|
public extern int solverVelocityIterations
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005AA RID: 1450
|
|
// (get) Token: 0x06001A5D RID: 6749 RVA: 0x00020FA0 File Offset: 0x0001F1A0
|
|
// (set) Token: 0x06001A5E RID: 6750 RVA: 0x00020FBC File Offset: 0x0001F1BC
|
|
[Obsolete("Please use Rigidbody.solverVelocityIterations instead. (UnityUpgradable) -> solverVelocityIterations")]
|
|
public int solverVelocityIterationCount
|
|
{
|
|
get
|
|
{
|
|
return this.solverVelocityIterations;
|
|
}
|
|
set
|
|
{
|
|
this.solverVelocityIterations = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170005AB RID: 1451
|
|
// (get) Token: 0x06001A5F RID: 6751
|
|
// (set) Token: 0x06001A60 RID: 6752
|
|
[Obsolete("The sleepVelocity is no longer supported. Use sleepThreshold. Note that sleepThreshold is energy but not velocity.")]
|
|
public extern float sleepVelocity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005AC RID: 1452
|
|
// (get) Token: 0x06001A61 RID: 6753
|
|
// (set) Token: 0x06001A62 RID: 6754
|
|
[Obsolete("The sleepAngularVelocity is no longer supported. Set Use sleepThreshold to specify energy.")]
|
|
public extern float sleepAngularVelocity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005AD RID: 1453
|
|
// (get) Token: 0x06001A63 RID: 6755
|
|
// (set) Token: 0x06001A64 RID: 6756
|
|
public extern float sleepThreshold
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170005AE RID: 1454
|
|
// (get) Token: 0x06001A65 RID: 6757
|
|
// (set) Token: 0x06001A66 RID: 6758
|
|
public extern float maxAngularVelocity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001A67 RID: 6759 RVA: 0x00020FC8 File Offset: 0x0001F1C8
|
|
public bool SweepTest(Vector3 direction, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
|
|
{
|
|
return Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, maxDistance, queryTriggerInteraction);
|
|
}
|
|
|
|
// Token: 0x06001A68 RID: 6760 RVA: 0x00020FEC File Offset: 0x0001F1EC
|
|
[ExcludeFromDocs]
|
|
public bool SweepTest(Vector3 direction, out RaycastHit hitInfo, float maxDistance)
|
|
{
|
|
QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal;
|
|
return Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, maxDistance, queryTriggerInteraction);
|
|
}
|
|
|
|
// Token: 0x06001A69 RID: 6761 RVA: 0x00021010 File Offset: 0x0001F210
|
|
[ExcludeFromDocs]
|
|
public bool SweepTest(Vector3 direction, out RaycastHit hitInfo)
|
|
{
|
|
QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal;
|
|
float positiveInfinity = float.PositiveInfinity;
|
|
return Rigidbody.INTERNAL_CALL_SweepTest(this, ref direction, out hitInfo, positiveInfinity, queryTriggerInteraction);
|
|
}
|
|
|
|
// Token: 0x06001A6A RID: 6762
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_SweepTest(Rigidbody self, ref Vector3 direction, out RaycastHit hitInfo, float maxDistance, QueryTriggerInteraction queryTriggerInteraction);
|
|
|
|
// Token: 0x06001A6B RID: 6763 RVA: 0x00021038 File Offset: 0x0001F238
|
|
public RaycastHit[] SweepTestAll(Vector3 direction, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
|
|
{
|
|
return Rigidbody.INTERNAL_CALL_SweepTestAll(this, ref direction, maxDistance, queryTriggerInteraction);
|
|
}
|
|
|
|
// Token: 0x06001A6C RID: 6764 RVA: 0x00021058 File Offset: 0x0001F258
|
|
[ExcludeFromDocs]
|
|
public RaycastHit[] SweepTestAll(Vector3 direction, float maxDistance)
|
|
{
|
|
QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal;
|
|
return Rigidbody.INTERNAL_CALL_SweepTestAll(this, ref direction, maxDistance, queryTriggerInteraction);
|
|
}
|
|
|
|
// Token: 0x06001A6D RID: 6765 RVA: 0x0002107C File Offset: 0x0001F27C
|
|
[ExcludeFromDocs]
|
|
public RaycastHit[] SweepTestAll(Vector3 direction)
|
|
{
|
|
QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal;
|
|
float positiveInfinity = float.PositiveInfinity;
|
|
return Rigidbody.INTERNAL_CALL_SweepTestAll(this, ref direction, positiveInfinity, queryTriggerInteraction);
|
|
}
|
|
|
|
// Token: 0x06001A6E RID: 6766
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern RaycastHit[] INTERNAL_CALL_SweepTestAll(Rigidbody self, ref Vector3 direction, float maxDistance, QueryTriggerInteraction queryTriggerInteraction);
|
|
|
|
// Token: 0x06001A6F RID: 6767 RVA: 0x000210A4 File Offset: 0x0001F2A4
|
|
[Obsolete("use Rigidbody.maxAngularVelocity instead.")]
|
|
public void SetMaxAngularVelocity(float a)
|
|
{
|
|
this.maxAngularVelocity = a;
|
|
}
|
|
}
|
|
}
|