HirahiraDropPhysics class

(en) A class for physics calculations that can simulate the falling motion of cherry blossom petals.

(ja) 桜の花びらの落下する動きをシミュレート可能な、物理演算のためのクラスです。

Author Masahide Mori

Constructors

HirahiraDropPhysics(Size size, {double? rotationSpeed, double? rotationDirection, double baseFallSpeed = 0.7, int fps = 60, double minShiftValue = 1.5, double maxShiftValue = 3.0})
  • size : The widget size.
  • rotationSpeed : The object rotation speed.
  • rotationDirection : Specifies whether to rotate the object counterclockwise or clockwise, as 1 or -1. If not specified, a random value will be set.
  • baseFallSpeed : Parameters for control of falling speed. The actual speed is obtained by adding 0 to 1 to this speed.
  • fps : The screen fps.
  • minShiftValue : Parameters related to petal swing width.
  • maxShiftValue : Parameters related to petal swing width.
  • Properties

    angle double?
    getter/setter pairinherited
    angularVelocity double?
    object rotation parameter.
    getter/setter pairinherited-setter
    baseFallSpeed double
    落下速度
    final
    direction ↔ Sp3dV3D?
    getter/setter pairinherited
    fps int
    fpsによらず速度を一定にするためのパラメータ
    final
    hashCode int
    The hash code for this object.
    no setterinherited
    isLocked bool
    getter/setter pairinherited
    mass double?
    getter/setter pairinherited
    maxShiftValue double
    final
    minShiftValue double
    画面の何分の一を基準に左右に揺れるかという指定。
    final
    name String?
    getter/setter pairinherited
    others Map<String, dynamic>?
    getter/setter pairinherited
    rotateAxis ↔ Sp3dV3D?
    getter/setter pairinherited
    rotationDirection double
    latefinal
    rotationSpeed double
    回転関連パラメータ
    latefinal
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    size Size
    親ビューのサイズ情報
    final
    speed double
    object speed.
    getter/setter pairinherited-setter
    velocity ↔ Sp3dV3D?
    object motion velocity.
    getter/setter pairinherited-setter

    Methods

    deepCopy() → Sp3dPhysics
    Deep copy the object.
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toDict() Map<String, dynamic>
    Convert the object to a dictionary.
    inherited
    toString() String
    A string representation of this object.
    inherited

    Operators

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