Skip to content

Model Objects

Swifter edited this page Nov 25, 2024 · 2 revisions

Model Objects

A ModelObject is a structure used in ReMapper to represent an object in a "model" (which is an array of ModelObjects).

{
   position: [x,y,z] or [[x,y,z,t,easing?], ...],
   rotation: [x,y,z] or [[x,y,z,t,easing?], ...],
   scale: [x,y,z] or [[x,y,z,t,easing?], ...],
   color: [r,g,b,a?], // Optional
   group: string // Optional
}
  • position, rotation, and scale describe the position or movement of the object.
  • color can be interpreted differently depending on the context of the model. For example, in model to wall it encodes the color of the walls.
  • group is mostly used by ModelScene. It describes the name of the group this object will be represented by. If left undefined, it will target the default group.

Notice how there is no actual mesh/shape information in a model object. It simply represents a transform, as well as additional information such as group and color.

If you're wondering why you're exporting objects using the blender exporter and they aren't showing up correctly, the issue lies in how the model objects are being interpreted in your script.

Clone this wiki locally