Vixen
02b45cc4
csharp
public struct PhysicsTeleport

Marks an entity whose transform was moved by something other than physics, so the bridge pushes it into the body instead of reading it back.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Teleporting is the one case the change-version machinery cannot decide on its own. The bridge writes LocalTransform every step for every dynamic body, so "the transform changed since I last looked" is true every step and says nothing about who changed it. This tag is the answer: game code that sets a transform directly adds it, the bridge acts on it and removes it.

A kinematic body does not need this — its transform is authored by definition, and the bridge drives it towards LocalTransform every step.

Used by (7)

  • NetworkRigidBodyCaptureSystemVixen.Net.Physics
  • NetworkRigidBodyCorrectionSystemVixen.Net.Physics
  • NetworkRigidBodyTestsVixen.Net.Physics.Tests
  • PhysicsSceneVixen.Physics
  • PhysicsSceneComponentTestsVixen.Physics.Tests
  • PhysicsSceneTestsVixen.Physics.Tests
  • PhysicsSyncSystemVixen.Physics