UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

30 lines (29 loc) 1.17 kB
import { type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; import { type FlowGraphContext } from "../../../flowGraphContext.js"; import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.js"; import { FlowGraphCachedOperationBlock } from "../flowGraphCachedOperationBlock.js"; import { type PhysicsBody } from "../../../../Physics/v2/physicsBody.js"; import { Vector3 } from "../../../../Maths/math.vector.js"; /** * @experimental * A data block that reads the angular velocity of a physics body. */ export declare class FlowGraphGetAngularVelocityBlock extends FlowGraphCachedOperationBlock<Vector3> { /** * Input connection: The physics body to read the angular velocity from. */ readonly body: FlowGraphDataConnection<PhysicsBody>; /** * Constructs a new FlowGraphGetAngularVelocityBlock. * @param config - optional configuration for the block */ constructor(config?: IFlowGraphBlockConfiguration); /** * @internal */ _doOperation(context: FlowGraphContext): Vector3 | undefined; /** * @returns class name of the block. */ getClassName(): string; }