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.

41 lines (40 loc) 1.73 kB
/** This file must only contain pure code and pure imports */ import { type FlowGraphContext } from "../../../flowGraphContext.js"; import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.pure.js"; import { FlowGraphExecutionBlockWithOutSignal } from "../../../flowGraphExecutionBlockWithOutSignal.js"; import { type FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.pure.js"; import { type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; import { type PhysicsBody } from "../../../../Physics/v2/physicsBody.js"; import { type Vector3 } from "../../../../Maths/math.vector.pure.js"; /** * @experimental * A block that sets the angular velocity of a physics body. */ export declare class FlowGraphSetAngularVelocityBlock extends FlowGraphExecutionBlockWithOutSignal { /** * Input connection: The physics body whose angular velocity will be set. */ readonly body: FlowGraphDataConnection<PhysicsBody>; /** * Input connection: The angular velocity vector to set. */ readonly velocity: FlowGraphDataConnection<Vector3>; /** * Constructs a new FlowGraphSetAngularVelocityBlock. * @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; } /** * Register side effects for flowGraphSetAngularVelocityBlock. * Safe to call multiple times; only the first call has an effect. */ export declare function RegisterFlowGraphSetAngularVelocityBlock(): void;