New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@2112-lab/3d-pathfinding

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2112-lab/3d-pathfinding

A lightweight 3D pathfinding library for finding orthogonal paths between objects in 3D space

latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
4
Created
Source

@2112-lab/3d-pathfinding

A lightweight JavaScript library for finding orthogonal paths between objects in 3D space.

Installation

npm install @2112-lab/3d-pathfinding

Usage

import { Pathfinding } from '@2112-lab/3d-pathfinding';

const config = {
    scene: {
        object: {
            children: [
                {
                    uuid: 'object1',
                    name: 'Box1',
                    position: { x: 0, y: 0, z: 0 },
                    geometry: {
                        uuid: 'geometry1',
                        width: 1,
                        height: 1,
                        depth: 1
                    }
                },
                {
                    uuid: 'object2',
                    name: 'Box2',
                    position: { x: 5, y: 0, z: 5 },
                    geometry: {
                        uuid: 'geometry2',
                        width: 1,
                        height: 1,
                        depth: 1
                    }
                }
            ]
        }
    },
    connections: [
        {
            from: 'object1',
            to: 'object2'
        }
    ]
};

const pathfinding = new Pathfinding(config);
const paths = pathfinding.findPaths();

Features

  • Finds orthogonal paths between objects in 3D space
  • Avoids obstacles and other objects
  • Uses A* pathfinding algorithm
  • Configurable grid size and safety margins
  • Framework-agnostic (no dependencies)

API Documentation

For detailed API documentation, see API.md.

License

MIT

Keywords

3d

FAQs

Package last updated on 27 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts