MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnTransformChanged

Method OnTransformChanged

Source/Engine/Physics/Actors/RigidBody.cpp:593–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593void RigidBody::OnTransformChanged()
594{
595 // Base
596 Actor::OnTransformChanged();
597
598 // Update physics is not during physics state synchronization
599 if (!_isUpdatingTransform && _actor)
600 {
601 const bool kinematic = GetIsKinematic() && GetEnableSimulation();
602 PhysicsBackend::SetRigidActorPose(_actor, _transform.Translation, _transform.Orientation, kinematic, true);
603 UpdateScale();
604 }
605
606 UpdateBounds();
607}
608
609void RigidBody::OnPhysicsSceneChanged(PhysicsScene* previous)
610{

Callers

nothing calls this directly

Calls 1

GetEnableSimulationFunction · 0.85

Tested by

no test coverage detected