@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.16 kB
TypeScript
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 linear velocity of a physics body.
*/
export declare class FlowGraphGetLinearVelocityBlock extends FlowGraphCachedOperationBlock<Vector3> {
/**
* Input connection: The physics body to read the velocity from.
*/
readonly body: FlowGraphDataConnection<PhysicsBody>;
/**
* Constructs a new FlowGraphGetLinearVelocityBlock.
* @param config - optional configuration for the block
*/
constructor(config?: IFlowGraphBlockConfiguration);
/**
* @internal
*/
_doOperation(context: FlowGraphContext): Vector3 | undefined;
/**
* @returns class name of the block.
*/
getClassName(): string;
}