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
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
Rotation
Rotation in degrees
[JsonProperty]
public Vec3f Rotation
Field Value
ScaleXYZ
Scaling per axis
[JsonProperty]
public Vec3f ScaleXYZ
Field Value
Translation
Offsetting
[JsonProperty]
public Vec3f Translation
Field Value
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
Methods
Clear()
Clears the transformation values.
public void Clear()