@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.
35 lines (34 loc) • 1.42 kB
TypeScript
import { type FlowGraphContext } from "../../../flowGraphContext.js";
import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
import { FlowGraphExecutionBlockWithOutSignal } from "../../../flowGraphExecutionBlockWithOutSignal.js";
import { type FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.js";
import { type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
import { type PhysicsBody } from "../../../../Physics/v2/physicsBody.js";
import { type Vector3 } from "../../../../Maths/math.vector.js";
/**
* @experimental
* A block that sets the linear velocity of a physics body.
*/
export declare class FlowGraphSetLinearVelocityBlock extends FlowGraphExecutionBlockWithOutSignal {
/**
* Input connection: The physics body whose velocity will be set.
*/
readonly body: FlowGraphDataConnection<PhysicsBody>;
/**
* Input connection: The linear velocity to set.
*/
readonly velocity: FlowGraphDataConnection<Vector3>;
/**
* Constructs a new FlowGraphSetLinearVelocityBlock.
* @param config - optional configuration for the block
*/
constructor(config?: IFlowGraphBlockConfiguration);
/**
* @internal
*/
_execute(context: FlowGraphContext, _callingSignal: FlowGraphSignalConnection): void;
/**
* @returns class name of the block.
*/
getClassName(): string;
}