Class CinemachineCollisionImpulseSource
Generate an Impulse Event this object's Collider collides with something or its trigger zone is entered.
This component should be attached to a GameObject with a Collider or a Collider2D. Objects colliding with this (or entering its trigger zone if it's a trigger) will be filtered according to the layer and tag settings defined here, and if they pass the filter, they will cause an impulse event to be generated.
상속
상속된 멤버
네임스페이스: Cinemachine
어셈블리: solution.dll
구문
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
public class CinemachineCollisionImpulseSource : CinemachineImpulseSource
필드
| 이름 | 설명 |
|---|---|
| m_IgnoreTag | No Impulse evemts will be generated for collisions with objects having these tags |
| m_LayerMask | Only collisions with objects on these layers will generate Impulse events. |
| m_ScaleImpactWithMass | If checked, signal amplitude will be multiplied by the mass of the impacting object |
| m_ScaleImpactWithSpeed | If checked, signal amplitude will be multiplied by the speed of the impacting object |
| m_UseImpactDirection | If checked, signal direction will be affected by the direction of impact |