parameterTypes
TypeScriptget parameterTypes(): PhysicsBodyParameterTypesSwift declarationvar parameterTypes: PhysicsBodyParameterTypes { get }The input rigid body parameters.
struct · iOS 18.0+ · SDK 27.1
struct VortexForceEffectA force effect whose forces circulate around an axis centered at the origin of the effect.
get parameterTypes(): PhysicsBodyParameterTypesSwift declarationvar parameterTypes: PhysicsBodyParameterTypes { get }The input rigid body parameters.
get axis(): SDKHandleSwift declarationlet axis: SIMD3<Float>The vortex's rotational axis centered at the origin of the effect.
update(parameters: ForceEffectParameters): { $ret: null; $out: { "parameters": ForceEffectParameters } }Swift declarationfunc update(parameters: inout ForceEffectParameters)Calculates the vortex forces for rigid bodies from the force effect. - Parameter parameters: On input, the parameters that calculate forces to the affected physics bodies; on output, the updates to those forces. The framework automatically calls this method for you at each physics simulation step, so you don't need to call it yourself.
Omit the output parameters from the call. The result contains $ret and $out, with parameters inside $out.
static init(strength: number, axis: SDKHandle): VortexForceEffectSwift declarationinit(strength: Double, axis: SIMD3<Float>)Creates a vortex force effect. - Parameters: - strength: The magnitude of the force. - axis: The vortex's rotational axis centered at the effect origin.
get strength(): numberSwift declarationlet strength: FloatThe magnitude of the force.
get forceMode(): ForceModeSwift declarationvar forceMode: ForceModeThe type of force this effect applies.
set forceMode(value: ForceMode)Swift declarationvar forceMode: ForceModeThe type of force this effect applies.
No declarations were skipped in this snapshot.