API

Class FlowGraphGetPhysicsMassPropertiesBlockExperimental

A data block that reads the mass properties of a physics body. Outputs the mass, center of mass (local space), and principal inertia.

Hierarchy (View Summary)

Index

Input connection: The physics body to read mass properties from.

Output connection: The center of mass in local space.

the configuration of the block

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

Output connection: The principal moments of inertia.

Output connection: The total mass in kilograms.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

uniqueId: string = ...

A randomly generated GUID for each block.

  • Experimental

    Serializes 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