Object class

Constructors

Object({List<Mesh>? mesh, Vector3? position, Vector3? rotation, Vector3? scale, Size? size, String name = 'Object', bool visible = true, int imageLocation = 0, SelectedType type = SelectedType.image, Color color = Colors.red, int layer = 1, bool scaleAllowed = true})

Properties

color Color
getter/setter pair
from ↔ Vector2
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageLocation int
getter/setter pair
layer int
getter/setter pair
mesh List<Mesh>
getter/setter pair
name String
getter/setter pair
position → Vector3
latefinal
rotation → Vector3
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale → Vector3
latefinal
scaleAllowed bool
getter/setter pair
size Size
getter/setter pair
transform Matrix4
final
type SelectedType
getter/setter pair
visible bool
getter/setter pair

Methods

changeColor(Color newColor) → void
filpVertical() → void
flipHorizontal() → void
move(int x, int y) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetPosition() → void
rotateMouse(Vector2 to, [double sensitivity = 1.0]) → void
savePosition() → void
scaleMouse(Vector2 to, [double sensitivity = 1.0]) → void
scaleObject(int x, int y) → void
toString() String
A string representation of this object.
inherited
updatePosition(Vector2 to, [double sensitivity = 1.0]) → void
updatePositionStart(Vector2 to) → void
updateTransform() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited