기술 자료

Unity Engine

Unity Engine

Simulate

Simulate the world. If deltaTime is zero then only contact and trigger events will be updated and no velocity or position integration or constraint updates will occur.
읽는 시간 1분최근 업데이트: 24일 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

Simulate(float)

Simulate the world. If
deltaTime
is zero then only contact and trigger events will be updated and no velocity or position integration or constraint updates will occur.
public void Simulate(float deltaTime)

Parameters

deltaTime

The amount of time to forward simulate the world.

Simulate(ReadOnlySpan<PhysicsWorld>, float)

Simulate a batch of worlds. If
deltaTime
is zero then only contact and trigger events will be updated and no velocity or position integration or constraint updates will occur. The worlds can be simulated concurrently depending on the setting of PhysicsCoreSettings2D.concurrentSimulations.
public static void Simulate(ReadOnlySpan<PhysicsWorld> worlds, float deltaTime)

Parameters

The worlds to forward simulate.

deltaTime

The amount of time to forward simulate the world.