文档

Unity Engine

Unity Engine

PhysicsEvents.PreSolveEvent

An event produced when a contact between a pair of PhysicsShape is updated, used to provide the ability to decide if the contact should be disabled or not.
阅读时间1 分钟最后更新于 1 个月前

Definition

public readonly struct PhysicsEvents.PreSolveEvent

Properties

Property

Description

normalThe surface normal at the point of contact.
physicsWorldThe physics world both shapes are within.
pointThe point of contact.
shapeAOne of the shapes involved in the event.
shapeBThe other shape involved in the event.