Skip to content

Instantly share code, notes, and snippets.

View NSTCG's full-sized avatar

NITHIN STEVEN F NSTCG

  • Wonderland Engine
  • Palakkad
View GitHub Profile
@NSTCG
NSTCG / scroll-fov.js
Last active September 12, 2023 14:45
a component to change fov ( for pc ) on runtime with scroll
import {Component, Property, ViewComponent} from "@wonderlandengine/api";
/**
* scroll-fov
*/
export class ScrollFov extends Component {
static TypeName = "scroll-fov";
/* Properties that are configurable in the editor */
static Properties = {
sensitivity: Property.float(0.01),