Base parameters for gdjs.Cube3DRuntimeObject

interface Model3DObjectData {
    behaviors: any[];
    content: Object3DDataContent & {
        animations: Model3DAnimation[];
        centerLocation: "ModelOrigin" | "ObjectCenter" | "BottomCenterZ" | "BottomCenterY";
        crossfadeDuration: number;
        keepAspectRatio: boolean;
        materialType: "Basic" | "StandardWithoutMetalness" | "KeepOriginal";
        modelResourceName: string;
        originLocation: "ModelOrigin" | "ObjectCenter" | "BottomCenterZ" | "BottomCenterY" | "TopLeft";
        rotationX: number;
        rotationY: number;
        rotationZ: number;
    };
    effects: EffectData[];
    name: string;
    type: string;
    variables: RootVariableData[];
}

Hierarchy (view full)

Properties

behaviors: any[]

The list of default behaviors.

content: Object3DDataContent & {
    animations: Model3DAnimation[];
    centerLocation: "ModelOrigin" | "ObjectCenter" | "BottomCenterZ" | "BottomCenterY";
    crossfadeDuration: number;
    keepAspectRatio: boolean;
    materialType: "Basic" | "StandardWithoutMetalness" | "KeepOriginal";
    modelResourceName: string;
    originLocation: "ModelOrigin" | "ObjectCenter" | "BottomCenterZ" | "BottomCenterY" | "TopLeft";
    rotationX: number;
    rotationY: number;
    rotationZ: number;
}

The base parameters of the Model3D object

Type declaration

  • animations: Model3DAnimation[]
  • centerLocation: "ModelOrigin" | "ObjectCenter" | "BottomCenterZ" | "BottomCenterY"
  • crossfadeDuration: number
  • keepAspectRatio: boolean
  • materialType: "Basic" | "StandardWithoutMetalness" | "KeepOriginal"
  • modelResourceName: string
  • originLocation: "ModelOrigin" | "ObjectCenter" | "BottomCenterZ" | "BottomCenterY" | "TopLeft"
  • rotationX: number
  • rotationY: number
  • rotationZ: number
effects: EffectData[]

The list of effects.

name: string

The name of the object. During the game, objects can be queried by their name (see gdjs.RuntimeScene.prototype.getObjects for example).

type: string

The object type.

variables: RootVariableData[]

The list of default variables.