BuoyancyInput()
Create a default PhysicsBody.BuoyancyInput. The PhysicsBody.BuoyancyInput.mask defaults to PhysicsMask.All so every attached shape contributes unless explicitly filtered out. The surface defaults to a flat horizontal water surface at the world origin ( PhysicsBody.BuoyancyInput.surfacePosition = Vector2.zero, PhysicsBody.BuoyancyInput.surfaceNormal = Vector2.up ).
읽는 시간 1분최근 업데이트: 22일 전
Definition
- Type: Constructor
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public BuoyancyInput()