747 lines
24 KiB
C#
747 lines
24 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000182 RID: 386
|
|
[RequireComponent(typeof(Transform))]
|
|
public sealed class Rigidbody2D : Component
|
|
{
|
|
// Token: 0x17000652 RID: 1618
|
|
// (get) Token: 0x06001D33 RID: 7475 RVA: 0x00024774 File Offset: 0x00022974
|
|
// (set) Token: 0x06001D34 RID: 7476 RVA: 0x00024794 File Offset: 0x00022994
|
|
public Vector2 position
|
|
{
|
|
get
|
|
{
|
|
Vector2 vector;
|
|
this.INTERNAL_get_position(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_position(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001D35 RID: 7477
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_position(out Vector2 value);
|
|
|
|
// Token: 0x06001D36 RID: 7478
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_position(ref Vector2 value);
|
|
|
|
// Token: 0x17000653 RID: 1619
|
|
// (get) Token: 0x06001D37 RID: 7479
|
|
// (set) Token: 0x06001D38 RID: 7480
|
|
public extern float rotation
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001D39 RID: 7481 RVA: 0x000247A0 File Offset: 0x000229A0
|
|
public void MovePosition(Vector2 position)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_MovePosition(this, ref position);
|
|
}
|
|
|
|
// Token: 0x06001D3A RID: 7482
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_MovePosition(Rigidbody2D self, ref Vector2 position);
|
|
|
|
// Token: 0x06001D3B RID: 7483 RVA: 0x000247AC File Offset: 0x000229AC
|
|
public void MoveRotation(float angle)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_MoveRotation(this, angle);
|
|
}
|
|
|
|
// Token: 0x06001D3C RID: 7484
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_MoveRotation(Rigidbody2D self, float angle);
|
|
|
|
// Token: 0x17000654 RID: 1620
|
|
// (get) Token: 0x06001D3D RID: 7485 RVA: 0x000247B8 File Offset: 0x000229B8
|
|
// (set) Token: 0x06001D3E RID: 7486 RVA: 0x000247D8 File Offset: 0x000229D8
|
|
public Vector2 velocity
|
|
{
|
|
get
|
|
{
|
|
Vector2 vector;
|
|
this.INTERNAL_get_velocity(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_velocity(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001D3F RID: 7487
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_velocity(out Vector2 value);
|
|
|
|
// Token: 0x06001D40 RID: 7488
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_velocity(ref Vector2 value);
|
|
|
|
// Token: 0x17000655 RID: 1621
|
|
// (get) Token: 0x06001D41 RID: 7489
|
|
// (set) Token: 0x06001D42 RID: 7490
|
|
public extern float angularVelocity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000656 RID: 1622
|
|
// (get) Token: 0x06001D43 RID: 7491
|
|
// (set) Token: 0x06001D44 RID: 7492
|
|
public extern bool useAutoMass
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000657 RID: 1623
|
|
// (get) Token: 0x06001D45 RID: 7493
|
|
// (set) Token: 0x06001D46 RID: 7494
|
|
public extern float mass
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000658 RID: 1624
|
|
// (get) Token: 0x06001D47 RID: 7495
|
|
// (set) Token: 0x06001D48 RID: 7496
|
|
public extern PhysicsMaterial2D sharedMaterial
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000659 RID: 1625
|
|
// (get) Token: 0x06001D49 RID: 7497 RVA: 0x000247E4 File Offset: 0x000229E4
|
|
// (set) Token: 0x06001D4A RID: 7498 RVA: 0x00024804 File Offset: 0x00022A04
|
|
public Vector2 centerOfMass
|
|
{
|
|
get
|
|
{
|
|
Vector2 vector;
|
|
this.INTERNAL_get_centerOfMass(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_centerOfMass(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001D4B RID: 7499
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_centerOfMass(out Vector2 value);
|
|
|
|
// Token: 0x06001D4C RID: 7500
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_centerOfMass(ref Vector2 value);
|
|
|
|
// Token: 0x1700065A RID: 1626
|
|
// (get) Token: 0x06001D4D RID: 7501 RVA: 0x00024810 File Offset: 0x00022A10
|
|
public Vector2 worldCenterOfMass
|
|
{
|
|
get
|
|
{
|
|
Vector2 vector;
|
|
this.INTERNAL_get_worldCenterOfMass(out vector);
|
|
return vector;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001D4E RID: 7502
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_worldCenterOfMass(out Vector2 value);
|
|
|
|
// Token: 0x1700065B RID: 1627
|
|
// (get) Token: 0x06001D4F RID: 7503
|
|
// (set) Token: 0x06001D50 RID: 7504
|
|
public extern float inertia
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700065C RID: 1628
|
|
// (get) Token: 0x06001D51 RID: 7505
|
|
// (set) Token: 0x06001D52 RID: 7506
|
|
public extern float drag
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700065D RID: 1629
|
|
// (get) Token: 0x06001D53 RID: 7507
|
|
// (set) Token: 0x06001D54 RID: 7508
|
|
public extern float angularDrag
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700065E RID: 1630
|
|
// (get) Token: 0x06001D55 RID: 7509
|
|
// (set) Token: 0x06001D56 RID: 7510
|
|
public extern float gravityScale
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700065F RID: 1631
|
|
// (get) Token: 0x06001D57 RID: 7511
|
|
// (set) Token: 0x06001D58 RID: 7512
|
|
public extern RigidbodyType2D bodyType
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001D59 RID: 7513
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
internal extern void SetDragBehaviour(bool dragged);
|
|
|
|
// Token: 0x17000660 RID: 1632
|
|
// (get) Token: 0x06001D5A RID: 7514
|
|
// (set) Token: 0x06001D5B RID: 7515
|
|
public extern bool useFullKinematicContacts
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000661 RID: 1633
|
|
// (get) Token: 0x06001D5C RID: 7516 RVA: 0x00024830 File Offset: 0x00022A30
|
|
// (set) Token: 0x06001D5D RID: 7517 RVA: 0x00024850 File Offset: 0x00022A50
|
|
public bool isKinematic
|
|
{
|
|
get
|
|
{
|
|
return this.bodyType == RigidbodyType2D.Kinematic;
|
|
}
|
|
set
|
|
{
|
|
this.bodyType = ((!value) ? RigidbodyType2D.Dynamic : RigidbodyType2D.Kinematic);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000662 RID: 1634
|
|
// (get) Token: 0x06001D5E RID: 7518
|
|
// (set) Token: 0x06001D5F RID: 7519
|
|
[Obsolete("The fixedAngle is no longer supported. Use constraints instead.")]
|
|
public extern bool fixedAngle
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000663 RID: 1635
|
|
// (get) Token: 0x06001D60 RID: 7520
|
|
// (set) Token: 0x06001D61 RID: 7521
|
|
public extern bool freezeRotation
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000664 RID: 1636
|
|
// (get) Token: 0x06001D62 RID: 7522
|
|
// (set) Token: 0x06001D63 RID: 7523
|
|
public extern RigidbodyConstraints2D constraints
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001D64 RID: 7524
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern bool IsSleeping();
|
|
|
|
// Token: 0x06001D65 RID: 7525
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern bool IsAwake();
|
|
|
|
// Token: 0x06001D66 RID: 7526
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void Sleep();
|
|
|
|
// Token: 0x06001D67 RID: 7527
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void WakeUp();
|
|
|
|
// Token: 0x17000665 RID: 1637
|
|
// (get) Token: 0x06001D68 RID: 7528
|
|
// (set) Token: 0x06001D69 RID: 7529
|
|
public extern bool simulated
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000666 RID: 1638
|
|
// (get) Token: 0x06001D6A RID: 7530
|
|
// (set) Token: 0x06001D6B RID: 7531
|
|
public extern RigidbodyInterpolation2D interpolation
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000667 RID: 1639
|
|
// (get) Token: 0x06001D6C RID: 7532
|
|
// (set) Token: 0x06001D6D RID: 7533
|
|
public extern RigidbodySleepMode2D sleepMode
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000668 RID: 1640
|
|
// (get) Token: 0x06001D6E RID: 7534
|
|
// (set) Token: 0x06001D6F RID: 7535
|
|
public extern CollisionDetectionMode2D collisionDetectionMode
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000669 RID: 1641
|
|
// (get) Token: 0x06001D70 RID: 7536
|
|
public extern int attachedColliderCount
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x06001D71 RID: 7537
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern int GetAttachedColliders(Collider2D[] results);
|
|
|
|
// Token: 0x06001D72 RID: 7538
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern bool IsTouching(Collider2D collider);
|
|
|
|
// Token: 0x06001D73 RID: 7539 RVA: 0x00024868 File Offset: 0x00022A68
|
|
public bool IsTouching(Collider2D collider, ContactFilter2D contactFilter)
|
|
{
|
|
return this.Internal_IsTouching(collider, contactFilter);
|
|
}
|
|
|
|
// Token: 0x06001D74 RID: 7540 RVA: 0x00024888 File Offset: 0x00022A88
|
|
private bool Internal_IsTouching(Collider2D collider, ContactFilter2D contactFilter)
|
|
{
|
|
return Rigidbody2D.INTERNAL_CALL_Internal_IsTouching(this, collider, ref contactFilter);
|
|
}
|
|
|
|
// Token: 0x06001D75 RID: 7541
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_Internal_IsTouching(Rigidbody2D self, Collider2D collider, ref ContactFilter2D contactFilter);
|
|
|
|
// Token: 0x06001D76 RID: 7542 RVA: 0x000248A8 File Offset: 0x00022AA8
|
|
public bool IsTouching(ContactFilter2D contactFilter)
|
|
{
|
|
return Rigidbody2D.INTERNAL_CALL_IsTouching(this, ref contactFilter);
|
|
}
|
|
|
|
// Token: 0x06001D77 RID: 7543
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_IsTouching(Rigidbody2D self, ref ContactFilter2D contactFilter);
|
|
|
|
// Token: 0x06001D78 RID: 7544
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern bool IsTouchingLayers([DefaultValue("Physics2D.AllLayers")] int layerMask);
|
|
|
|
// Token: 0x06001D79 RID: 7545 RVA: 0x000248C8 File Offset: 0x00022AC8
|
|
[ExcludeFromDocs]
|
|
public bool IsTouchingLayers()
|
|
{
|
|
int num = -1;
|
|
return this.IsTouchingLayers(num);
|
|
}
|
|
|
|
// Token: 0x06001D7A RID: 7546 RVA: 0x000248E8 File Offset: 0x00022AE8
|
|
public bool OverlapPoint(Vector2 point)
|
|
{
|
|
return Rigidbody2D.INTERNAL_CALL_OverlapPoint(this, ref point);
|
|
}
|
|
|
|
// Token: 0x06001D7B RID: 7547
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_OverlapPoint(Rigidbody2D self, ref Vector2 point);
|
|
|
|
// Token: 0x06001D7C RID: 7548 RVA: 0x00024908 File Offset: 0x00022B08
|
|
public int OverlapCollider(ContactFilter2D contactFilter, Collider2D[] results)
|
|
{
|
|
return Rigidbody2D.INTERNAL_CALL_OverlapCollider(this, ref contactFilter, results);
|
|
}
|
|
|
|
// Token: 0x06001D7D RID: 7549
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern int INTERNAL_CALL_OverlapCollider(Rigidbody2D self, ref ContactFilter2D contactFilter, Collider2D[] results);
|
|
|
|
// Token: 0x06001D7E RID: 7550 RVA: 0x00024928 File Offset: 0x00022B28
|
|
public int Cast(Vector2 direction, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance)
|
|
{
|
|
return Rigidbody2D.INTERNAL_CALL_Cast(this, ref direction, results, distance);
|
|
}
|
|
|
|
// Token: 0x06001D7F RID: 7551 RVA: 0x00024948 File Offset: 0x00022B48
|
|
[ExcludeFromDocs]
|
|
public int Cast(Vector2 direction, RaycastHit2D[] results)
|
|
{
|
|
float positiveInfinity = float.PositiveInfinity;
|
|
return Rigidbody2D.INTERNAL_CALL_Cast(this, ref direction, results, positiveInfinity);
|
|
}
|
|
|
|
// Token: 0x06001D80 RID: 7552
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern int INTERNAL_CALL_Cast(Rigidbody2D self, ref Vector2 direction, RaycastHit2D[] results, float distance);
|
|
|
|
// Token: 0x06001D81 RID: 7553 RVA: 0x00024970 File Offset: 0x00022B70
|
|
[ExcludeFromDocs]
|
|
public int Cast(Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results)
|
|
{
|
|
float positiveInfinity = float.PositiveInfinity;
|
|
return this.Cast(direction, contactFilter, results, positiveInfinity);
|
|
}
|
|
|
|
// Token: 0x06001D82 RID: 7554 RVA: 0x00024998 File Offset: 0x00022B98
|
|
public int Cast(Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance)
|
|
{
|
|
return this.Internal_Cast(direction, distance, contactFilter, results);
|
|
}
|
|
|
|
// Token: 0x06001D83 RID: 7555 RVA: 0x000249B8 File Offset: 0x00022BB8
|
|
private int Internal_Cast(Vector2 direction, float distance, ContactFilter2D contactFilter, RaycastHit2D[] results)
|
|
{
|
|
return Rigidbody2D.INTERNAL_CALL_Internal_Cast(this, ref direction, distance, ref contactFilter, results);
|
|
}
|
|
|
|
// Token: 0x06001D84 RID: 7556
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern int INTERNAL_CALL_Internal_Cast(Rigidbody2D self, ref Vector2 direction, float distance, ref ContactFilter2D contactFilter, RaycastHit2D[] results);
|
|
|
|
// Token: 0x06001D85 RID: 7557
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern ColliderDistance2D Distance(Collider2D collider);
|
|
|
|
// Token: 0x06001D86 RID: 7558 RVA: 0x000249DC File Offset: 0x00022BDC
|
|
public void AddForce(Vector2 force, [DefaultValue("ForceMode2D.Force")] ForceMode2D mode)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_AddForce(this, ref force, mode);
|
|
}
|
|
|
|
// Token: 0x06001D87 RID: 7559 RVA: 0x000249E8 File Offset: 0x00022BE8
|
|
[ExcludeFromDocs]
|
|
public void AddForce(Vector2 force)
|
|
{
|
|
ForceMode2D forceMode2D = ForceMode2D.Force;
|
|
Rigidbody2D.INTERNAL_CALL_AddForce(this, ref force, forceMode2D);
|
|
}
|
|
|
|
// Token: 0x06001D88 RID: 7560
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddForce(Rigidbody2D self, ref Vector2 force, ForceMode2D mode);
|
|
|
|
// Token: 0x06001D89 RID: 7561 RVA: 0x00024A04 File Offset: 0x00022C04
|
|
public void AddRelativeForce(Vector2 relativeForce, [DefaultValue("ForceMode2D.Force")] ForceMode2D mode)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_AddRelativeForce(this, ref relativeForce, mode);
|
|
}
|
|
|
|
// Token: 0x06001D8A RID: 7562 RVA: 0x00024A10 File Offset: 0x00022C10
|
|
[ExcludeFromDocs]
|
|
public void AddRelativeForce(Vector2 relativeForce)
|
|
{
|
|
ForceMode2D forceMode2D = ForceMode2D.Force;
|
|
Rigidbody2D.INTERNAL_CALL_AddRelativeForce(this, ref relativeForce, forceMode2D);
|
|
}
|
|
|
|
// Token: 0x06001D8B RID: 7563
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddRelativeForce(Rigidbody2D self, ref Vector2 relativeForce, ForceMode2D mode);
|
|
|
|
// Token: 0x06001D8C RID: 7564 RVA: 0x00024A2C File Offset: 0x00022C2C
|
|
public void AddForceAtPosition(Vector2 force, Vector2 position, [DefaultValue("ForceMode2D.Force")] ForceMode2D mode)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_AddForceAtPosition(this, ref force, ref position, mode);
|
|
}
|
|
|
|
// Token: 0x06001D8D RID: 7565 RVA: 0x00024A3C File Offset: 0x00022C3C
|
|
[ExcludeFromDocs]
|
|
public void AddForceAtPosition(Vector2 force, Vector2 position)
|
|
{
|
|
ForceMode2D forceMode2D = ForceMode2D.Force;
|
|
Rigidbody2D.INTERNAL_CALL_AddForceAtPosition(this, ref force, ref position, forceMode2D);
|
|
}
|
|
|
|
// Token: 0x06001D8E RID: 7566
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddForceAtPosition(Rigidbody2D self, ref Vector2 force, ref Vector2 position, ForceMode2D mode);
|
|
|
|
// Token: 0x06001D8F RID: 7567
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void AddTorque(float torque, [DefaultValue("ForceMode2D.Force")] ForceMode2D mode);
|
|
|
|
// Token: 0x06001D90 RID: 7568 RVA: 0x00024A58 File Offset: 0x00022C58
|
|
[ExcludeFromDocs]
|
|
public void AddTorque(float torque)
|
|
{
|
|
ForceMode2D forceMode2D = ForceMode2D.Force;
|
|
this.AddTorque(torque, forceMode2D);
|
|
}
|
|
|
|
// Token: 0x06001D91 RID: 7569 RVA: 0x00024A70 File Offset: 0x00022C70
|
|
public Vector2 GetPoint(Vector2 point)
|
|
{
|
|
Vector2 vector;
|
|
Rigidbody2D.Internal_GetPoint(this, point, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001D92 RID: 7570 RVA: 0x00024A90 File Offset: 0x00022C90
|
|
private static void Internal_GetPoint(Rigidbody2D rigidbody, Vector2 point, out Vector2 value)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_Internal_GetPoint(rigidbody, ref point, out value);
|
|
}
|
|
|
|
// Token: 0x06001D93 RID: 7571
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_GetPoint(Rigidbody2D rigidbody, ref Vector2 point, out Vector2 value);
|
|
|
|
// Token: 0x06001D94 RID: 7572 RVA: 0x00024A9C File Offset: 0x00022C9C
|
|
public Vector2 GetRelativePoint(Vector2 relativePoint)
|
|
{
|
|
Vector2 vector;
|
|
Rigidbody2D.Internal_GetRelativePoint(this, relativePoint, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001D95 RID: 7573 RVA: 0x00024ABC File Offset: 0x00022CBC
|
|
private static void Internal_GetRelativePoint(Rigidbody2D rigidbody, Vector2 relativePoint, out Vector2 value)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_Internal_GetRelativePoint(rigidbody, ref relativePoint, out value);
|
|
}
|
|
|
|
// Token: 0x06001D96 RID: 7574
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_GetRelativePoint(Rigidbody2D rigidbody, ref Vector2 relativePoint, out Vector2 value);
|
|
|
|
// Token: 0x06001D97 RID: 7575 RVA: 0x00024AC8 File Offset: 0x00022CC8
|
|
public Vector2 GetVector(Vector2 vector)
|
|
{
|
|
Vector2 vector2;
|
|
Rigidbody2D.Internal_GetVector(this, vector, out vector2);
|
|
return vector2;
|
|
}
|
|
|
|
// Token: 0x06001D98 RID: 7576 RVA: 0x00024AE8 File Offset: 0x00022CE8
|
|
private static void Internal_GetVector(Rigidbody2D rigidbody, Vector2 vector, out Vector2 value)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_Internal_GetVector(rigidbody, ref vector, out value);
|
|
}
|
|
|
|
// Token: 0x06001D99 RID: 7577
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_GetVector(Rigidbody2D rigidbody, ref Vector2 vector, out Vector2 value);
|
|
|
|
// Token: 0x06001D9A RID: 7578 RVA: 0x00024AF4 File Offset: 0x00022CF4
|
|
public Vector2 GetRelativeVector(Vector2 relativeVector)
|
|
{
|
|
Vector2 vector;
|
|
Rigidbody2D.Internal_GetRelativeVector(this, relativeVector, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001D9B RID: 7579 RVA: 0x00024B14 File Offset: 0x00022D14
|
|
private static void Internal_GetRelativeVector(Rigidbody2D rigidbody, Vector2 relativeVector, out Vector2 value)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_Internal_GetRelativeVector(rigidbody, ref relativeVector, out value);
|
|
}
|
|
|
|
// Token: 0x06001D9C RID: 7580
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_GetRelativeVector(Rigidbody2D rigidbody, ref Vector2 relativeVector, out Vector2 value);
|
|
|
|
// Token: 0x06001D9D RID: 7581 RVA: 0x00024B20 File Offset: 0x00022D20
|
|
public Vector2 GetPointVelocity(Vector2 point)
|
|
{
|
|
Vector2 vector;
|
|
Rigidbody2D.Internal_GetPointVelocity(this, point, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001D9E RID: 7582 RVA: 0x00024B40 File Offset: 0x00022D40
|
|
private static void Internal_GetPointVelocity(Rigidbody2D rigidbody, Vector2 point, out Vector2 value)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_Internal_GetPointVelocity(rigidbody, ref point, out value);
|
|
}
|
|
|
|
// Token: 0x06001D9F RID: 7583
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_GetPointVelocity(Rigidbody2D rigidbody, ref Vector2 point, out Vector2 value);
|
|
|
|
// Token: 0x06001DA0 RID: 7584 RVA: 0x00024B4C File Offset: 0x00022D4C
|
|
public Vector2 GetRelativePointVelocity(Vector2 relativePoint)
|
|
{
|
|
Vector2 vector;
|
|
Rigidbody2D.Internal_GetRelativePointVelocity(this, relativePoint, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06001DA1 RID: 7585 RVA: 0x00024B6C File Offset: 0x00022D6C
|
|
private static void Internal_GetRelativePointVelocity(Rigidbody2D rigidbody, Vector2 relativePoint, out Vector2 value)
|
|
{
|
|
Rigidbody2D.INTERNAL_CALL_Internal_GetRelativePointVelocity(rigidbody, ref relativePoint, out value);
|
|
}
|
|
|
|
// Token: 0x06001DA2 RID: 7586
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_GetRelativePointVelocity(Rigidbody2D rigidbody, ref Vector2 relativePoint, out Vector2 value);
|
|
|
|
// Token: 0x06001DA3 RID: 7587 RVA: 0x00024B78 File Offset: 0x00022D78
|
|
public int GetContacts(ContactPoint2D[] contacts)
|
|
{
|
|
return Physics2D.GetContacts(this, default(ContactFilter2D).NoFilter(), contacts);
|
|
}
|
|
|
|
// Token: 0x06001DA4 RID: 7588 RVA: 0x00024BA4 File Offset: 0x00022DA4
|
|
public int GetContacts(ContactFilter2D contactFilter, ContactPoint2D[] contacts)
|
|
{
|
|
return Physics2D.GetContacts(this, contactFilter, contacts);
|
|
}
|
|
|
|
// Token: 0x06001DA5 RID: 7589 RVA: 0x00024BC4 File Offset: 0x00022DC4
|
|
public int GetContacts(Collider2D[] colliders)
|
|
{
|
|
return Physics2D.GetContacts(this, default(ContactFilter2D).NoFilter(), colliders);
|
|
}
|
|
|
|
// Token: 0x06001DA6 RID: 7590 RVA: 0x00024BF0 File Offset: 0x00022DF0
|
|
public int GetContacts(ContactFilter2D contactFilter, Collider2D[] colliders)
|
|
{
|
|
return Physics2D.GetContacts(this, contactFilter, colliders);
|
|
}
|
|
}
|
|
}
|