Class FlowGraphGetAngularVelocityBlockExperimental
Hierarchy
- FlowGraphCachedOperationBlock<Vector3>
- FlowGraphGetAngularVelocityBlock
Constructors
constructor
-
new FlowGraphGetAngularVelocityBlock(
config?: IFlowGraphBlockConfiguration,
): FlowGraphGetAngularVelocityBlockExperimentalConstructs a new FlowGraphGetAngularVelocityBlock.
Parameters
Optionalconfig: IFlowGraphBlockConfigurationoptional configuration for the block
Returns FlowGraphGetAngularVelocityBlock
Properties
Readonly Experimentalbody
Input connection: The physics body to read the angular velocity from.
Optional Experimentalconfig
the configuration of the block
Experimentaldata Inputs
The data inputs of the block.
Experimentaldata Outputs
The data outputs of the block.
Readonly Experimentalis Valid
Output connection: Whether the value is valid.
Experimentalmetadata
Metadata that can be used by the block.
Experimentalname
The name of the block.
Experimentalunique Id
A randomly generated GUID for each block.
Readonly Experimentalvalue
The output of the operation
Methods
deserialize
-
ExperimentalDeserializes this block
Parameters
- _serializationObject: ISerializedFlowGraphBlock
the object to deserialize from
Returns void
- _serializationObject: ISerializedFlowGraphBlock
get Class Name
-
ExperimentalReturns string
class name of the block.
get Data Input
-
ExperimentalGiven the name of a data input, returns the connection if it exists
Parameters
- name: string
the name of the input
Returns FlowGraphDataConnection<any> | undefined
the connection if it exists, undefined otherwise
- name: string
get Data Output
-
ExperimentalGiven the name of a data output, returns the connection if it exists
Parameters
- name: string
the name of the output
Returns FlowGraphDataConnection<any> | undefined
the connection if it exists, undefined otherwise
- name: string
register Data Input
-
registerDataInput<T>(
name: string,
richType: RichType<T>,
defaultValue?: T,
): FlowGraphDataConnection<T>ExperimentalRegisters a data input on the block.
Type Parameters
- T
Parameters
Returns FlowGraphDataConnection<T>
the created connection
register Data Output
-
registerDataOutput<T>(
name: string,
richType: RichType<T>,
defaultValue?: T,
): FlowGraphDataConnection<T>ExperimentalRegisters a data output on the block.
Type Parameters
- T
Parameters
Returns FlowGraphDataConnection<T>
the created connection
serialize
-
serialize(
serializationObject?: any,
_valueSerializeFunction?: (
key: string,
value: any,
serializationObject: any,
) => any,
): voidExperimentalSerializes this block
Parameters
- serializationObject: any = {}
the object to serialize to
- _valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction
a function that serializes a specific value
Returns void
- serializationObject: any = {}
A data block that reads the angular velocity of a physics body.