Class
FluidForceSensor
A SensorBase that outputs Force,
Torque and
CenterOfPressure.
FluidForceSensor is a SensorBase which outputs the results of fluid
force simulation from the last physics frame for the part it is attached to.
The sensor outputs the Force,
Torque and
CenterOfPressure which were computed
by the fluid force simulation on the last physics frame.
Properties 3#
CenterOfPressureVector3 | Assembly center of pressure offset from its center of mass in world coordinates.ReadSafeReadOnlyNotReplicated |
ForceVector3 | Assembly fluid force in world coordinates.ReadSafeReadOnlyNotReplicated |
TorqueVector3 | Assembly fluid torque in world coordinates.ReadSafeReadOnlyNotReplicated |
CenterOfPressure: Vector3#
ReadOnlyNotReplicatedReadSafe
Assembly center of pressure offset from its center of mass in world coordinates.
Force: Vector3#
ReadOnlyNotReplicatedReadSafe
Assembly fluid force in world coordinates.
Torque: Vector3#
ReadOnlyNotReplicatedReadSafe
Assembly fluid torque in world coordinates.
Methods 1#
| EvaluateAsync | Asynchronously computes force, torque, and center of pressure for the parent part of a sensor given provided inputs.Yields |
EvaluateAsync(linearVelocity: Vector3, angularVelocity: Vector3, cframe: CFrame): Tuple#
Yields
Asynchronously computes force, torque, and center of pressure for the parent part of a sensor given provided inputs.
| Name | Type | Default | Description |
|---|---|---|---|
linearVelocity | Vector3 | Linear velocity in world coordinates. | |
angularVelocity | Vector3 | Angular velocity in world coordinates. | |
cframe | CFrame | CFrame to be used for evaluation. |
Returns
Tuple— Tuple ofForce,TorqueandCenterOfPressurecalculated given the input parameters.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild