Skip to content

ITextStudioReactionBodyProvider

InterfaceTextStudioTextStudio
public interface ITextStudioReactionBodyProvider

Optional target-scoped owner of physical semantic-unit reactions.

bool CanReleaseSemanticUnit(int unitIndex)

Reports whether this physical owner can release the specified semantic unit at its current pose.

Parameters

Name Type
unitIndex System.Int32

Returns

System.Boolean

TryReleaseSemanticUnit(int, Vector3, Vector3, out TextStudioReactionBodyEventSession)

Section titled “TryReleaseSemanticUnit(int, Vector3, Vector3, out TextStudioReactionBodyEventSession)”
bool TryReleaseSemanticUnit(int unitIndex, Vector3 velocity, Vector3 angularVelocity, out TextStudioReactionBodyEventSession session)

Release at the current pose, adding world-space launch velocities to existing motion.

Parameters

Name Type
unitIndex System.Int32
velocity UnityEngine.Vector3
angularVelocity UnityEngine.Vector3
session TextStudio.TextStudioReactionBodyEventSession

Returns

System.Boolean

bool IsAvailable { get; }

Returns

System.Boolean