MCPcopy Create free account
hub / github.com/DarkZek/RustCraft / physics_rotation_sync

Function physics_rotation_sync

client/src/systems/physics/sync.rs:33–58  ·  view source on GitHub ↗

Syncs all of the changed PhysicsObjects to the transform

(
    game_object_data: Query<&PlayerGameObject>,
    mut transforms: Query<&mut Transform>,
    mut query: Query<(Entity, &PhysicsObject)>,
    fixed_time: Res<Time<Fixed>>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

lerpMethod · 0.80
getMethod · 0.45
rotateMethod · 0.45
get_mutMethod · 0.45

Tested by

no test coverage detected