Search Unity

Question Movement Patterns in Unity

Discussion in 'Scripting' started by pol_impala, Nov 27, 2022.

  1. pol_impala

    pol_impala

    Joined:
    Nov 24, 2022
    Posts:
    1
    I am new in unity and as part of my programming class I am asked to do the following:
    • Generate using scripts at least 3 different movement, rotation and scale patterns (each pattern must contain movement, rotation and scale modifications, there are 3 patterns in total) that last 15 seconds on cubes.
    • Finally, put all those patterns together in a script and have it run one at a time and you can change which pattern is active using the “c” key on your computer.
    However, I am not entirely sure how to do this. Does anyone no how should I do the script?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    I would start by asking the teacher for an example.

    Normally one does not make movement patterns in code, but you certainly can.