Progetto H — API Reference API & Scripting Documentation
Function Shared Moderate

Cable:SetForces

Set the forces the cable has applied (visuals only)

Syntax

Lua
my_cable:SetForces(force, gravity_scale = 1)

Parameters

Name Type Default Description
force Vector Force vector (world space) applied to all particles in cable. Default is Vector(0, 0, 0)
gravity_scale optional float 1 Scaling applied to world gravity affecting this cable. Default is 1