Skip to content

getBreakEffectSourceTriangleCount

Client-side

Available in Neon, not standard MTA

Returns the triangle count of the mesh the fragments were cut from.

Syntax

int|false getBreakEffectSourceTriangleCount(break-effect theEffect)

Arguments

theEffectbreak-effect

Break effect element returned by createObjectBreakEffect.

Returns

The source triangle count, or false for an invalid effect.

Ownership and lifecycle

A break effect belongs to the resource that created it and is removed when that resource stops. Fragment geometry is cached per model, so repeated fractures of the same model reuse the first computed cut until the cache is cleared.

Important behavior
  • Useful for judging whether a model is worth fracturing at a high fragment count.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →