addGlobalRotModifier

open fun addGlobalRotModifier(@NotNull predicate: @NotNull BonePredicate, @NotNull mapper: @NotNull (Quaternionf) -> Quaternionf): Boolean

Adds a global rotation modifier to bones matching the given predicate.


pipeline.addGlobalRotModifier(BonePredicate.TRUE, rot -> rot.rotateY(0.2f));

Return

true if any matching bones were modified, false otherwise

Since

3.0.0

Parameters

predicate

the predicate to select bones

mapper

the global rotation mapping function

Throws

if predicate or mapper is null