Table of Contents

Class ModelTransformNoDefaults

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
[JsonObject(MemberSerialization.OptIn)]
public class ModelTransformNoDefaults
Inheritance
ModelTransformNoDefaults
Derived
Inherited Members

Fields

Origin

Rotation/Scaling Origin

[JsonProperty]
public Vec3f Origin

Field Value

Vec3f

Rotate

For Gui Transform: Whether to slowly spin in gui item preview For Ground Transform: Whether to apply a random rotation to the dropped item No effect on other transforms

[JsonProperty]
public bool Rotate

Field Value

bool

Rotation

Rotation in degrees

[JsonProperty]
public Vec3f Rotation

Field Value

Vec3f

ScaleXYZ

Scaling per axis

[JsonProperty]
public Vec3f ScaleXYZ

Field Value

Vec3f

Translation

Offsetting

[JsonProperty]
public Vec3f Translation

Field Value

Vec3f

Properties

AsMatrix

Converts the transform into a matrix.

public float[] AsMatrix { get; }

Property Value

float[]

Scale

To set uniform Scaling on all Axes

[JsonProperty]
public float Scale { set; }

Property Value

float

Methods

Clear()

Clears the transformation values.

public void Clear()