Class FlowGraphGetPhysicsMassPropertiesBlockExperimental
Hierarchy (View Summary)
- FlowGraphBlock
- FlowGraphGetPhysicsMassPropertiesBlock
Constructors
constructor
-
new FlowGraphGetPhysicsMassPropertiesBlock(
config?: IFlowGraphBlockConfiguration,
): FlowGraphGetPhysicsMassPropertiesBlockExperimentalConstructs a new FlowGraphGetPhysicsMassPropertiesBlock.
Parameters
Optionalconfig: IFlowGraphBlockConfigurationoptional configuration for the block
Returns FlowGraphGetPhysicsMassPropertiesBlock
Properties
Readonly Experimentalbody
Input connection: The physics body to read mass properties from.
Readonly Experimentalcenter Of Mass
Output connection: The center of mass in local space.
Optional Experimentalconfig
the configuration of the block
Experimentaldata Inputs
The data inputs of the block.
Experimentaldata Outputs
The data outputs of the block.
Readonly Experimentalinertia
Output connection: The principal moments of inertia.
Readonly Experimentalmass
Output connection: The total mass in kilograms.
Experimentalmetadata
Metadata that can be used by the block.
Experimentalname
The name of the block.
Experimentalunique Id
A randomly generated GUID for each block.
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 mass properties of a physics body. Outputs the mass, center of mass (local space), and principal inertia.