Documentation

Unity Engine

Unity Engine

contactRecyclingAllowed

Controls contact recycling for this body. Enabled by default. Contact recycling reuses contact manifolds when bodies move only slightly, improving performance. Disabling it can avoid ghost collisions, at the cost of higher simulation time. Both bodies in a contact must have recycling enabled for that contact to be recycled. See PhysicsBody.contactRecyclingAllowed.
Read time 1 minuteLast updated 18 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool contactRecyclingAllowed { readonly get; set; }