@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
17 lines (16 loc) • 786 B
TypeScript
import { Vector3 } from "three";
import { SplineContainer } from "./Spline.js";
/**
* @category Splines
* @see {@link SplineContainer} for the main spline component that defines the path and knots
*/
export declare namespace SplineUtils {
/**
* Creates a SplineContainer from an array of points.
* @param positions The positions of the knots.
* @param closed Whether the spline is closed (the last knot connects to the first).
* @param tension The tension of the spline. 0 is no tension, 1 is high tension (straight lines between knots). Default is 0.75.
* @return The created SplineContainer component - add it to an Object3D to use it.
*/
function createFromPoints(positions: Vector3[], closed?: boolean, tension?: number): SplineContainer;
}