April 2020
Intermediate to advanced
716 pages
18h 55m
English
The answerObjects and wrongObjects fields already defined in the game schema will both be arrays of VR object documents. These documents will represent the VR objects that are a part of the game. We will define the VR object Mongoose schema for these documents separately, with fields for storing the URLs of the object (OBJ) file and Material Template Library (MTL) file, along with the React 360 transform values, the scale value, and color value for each VR object.
The schema for the VR object will also be defined in server/models/game.model.js, and the code defining these fields is given in the following list, with explanations:
Read now
Unlock full access