FluidForceSensor

Show Deprecated

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.

Summary

Properties

  • Read Only
    Not Replicated
    Read Parallel

    Assembly center of pressure offset from its center of mass in world coordinates.

  • Read Only
    Not Replicated
    Read Parallel

    Assembly fluid force in world coordinates.

  • Read Only
    Not Replicated
    Read Parallel

    Assembly fluid torque in world coordinates.

Properties inherited from SensorBase

Methods

  • 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.

Properties

CenterOfPressure

Read Only
Not Replicated
Read Parallel

Assembly center of pressure offset from its center of mass in world coordinates.

Force

Read Only
Not Replicated
Read Parallel

Assembly fluid force in world coordinates.

Torque

Read Only
Not Replicated
Read Parallel

Assembly fluid torque in world coordinates.

Methods

EvaluateAsync

Yields

Asynchronously computes force, torque, and center of pressure for the parent part of a sensor given provided inputs.

Parameters

linearVelocity: Vector3

Linear velocity in world coordinates.

angularVelocity: Vector3

Angular velocity in world coordinates.

cframe: CFrame

CFrame to be used for evaluation.


Returns

Tuple of Force, Torque and CenterOfPressure calculated given the input parameters.

Events