MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ enable_bonds()

void MayaFlux::Nodes::Network::PhysicsOperator::enable_bonds ( bool  enable)

Enable or disable adopting bonds from sync_bonds_from_claims.

Parameters
enableFalse also clears any bonds currently held, so the effect is immediate rather than waiting for the next zero-claim cycle.

Purely a toggle for comparing bonded vs. unbonded behaviour live: the GPU claim/swallow cosmetic pass is unaffected either way, since it never reads this flag. Only apply_bond_forces (a real physics effect) is gated by it.

Definition at line 605 of file PhysicsOperator.cpp.

606{
607 m_bonds_enabled = enable;
608 if (!enable) {
609 clear_bonds();
610 }
611}
void clear_bonds()
Drop every adopted bond.

References clear_bonds(), and m_bonds_enabled.

+ Here is the call graph for this function: