Giter Site home page Giter Site logo

bevy-orbit-controls's Introduction

bevy-orbit-controls

An orbit controls plugin for bevy.

To control the camera, drag the mouse. The left button rotates. The wheel zooms.

Usage

Register the OrbitCameraPlugin, and insert the OrbitCamera struct into the entity containing the camera.

For example, within the startup system:

commands
    .spawn_bundle(PerspectiveCameraBundle {
        transform: Transform::from_translation(Vec3::new(-3.0, 3.0, 5.0))
            .looking_at(Vec3::default(), Vec3::Y),
        ..Default::default()
    })
    .insert(OrbitCamera::default());

Compatibility

  • v2.x โ€“ Bevy 0.5.
  • v1.x โ€“ Bevy 0.4.

bevy-orbit-controls's People

Contributors

implode-nz avatar jakobhellermann avatar rezural avatar sebcrozet avatar virtualritz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bevy-orbit-controls's Issues

License file or snippet is missing

I see the notice as the repo being "unmaintained" but I just like the code because it's super compact and very readable, and I'd like to use it as a starting point for my own custom cam. But for that I need to be able to credit you properly. What's your license?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.