@oasis-engine/mars
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Oasis Mars

npm-size npm-download

This is a mars runtime created by oasis engine.

Badges

TNPM version TNPM downloads


Usage

import { MarsComponent, MarsResource } from "@oasis-engine/mars";

const renderer = entity.addComponent(MarsComponent);
const marsJson = 'https://gw.alipayobjects.com/os/gltf-asset/o3-e/RVITQTIWPTYE/-2123982445-2341f.json';
MarsResource.loadSceneAsync(marsJson, {}, engine.resourceManager).then((resource) => {
  renderer.resource = resource;
  renderer.play();
});

Install

tnpm i @oasis-engine/mars --save

Dev

1、Clone this repository and install the dependencies:

tnpm i

2、Run the example:

tnpm run example

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @oasis-engine/mars

Weekly Downloads

19

Version

0.5.0

License

none

Unpacked Size

1.15 MB

Total Files

13

Last publish

Collaborators

  • mrkou47
  • eyworldwide
  • johanzhu
  • chengkong.zxx
  • zhuxudong
  • czizzy
  • husong
  • gl3336563
  • luzhuang
  • zhanyingwei