文档

Unity Engine

Unity Engine

queriesHitBackfaces

Whether physics queries should hit back-face triangles.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public static bool queriesHitBackfaces { get; set; }

Remarks

By default, all physics queries such as a raycast or a shape sweep (e.g. SphereCastAll) won't detect hits with back-face triangles.