1. #1

    How do I make something I created move in multiple direction

    Hi guys

    I made a space ship, and I know how to make it move for example to the left.
    But what do I have to do to make it, let's say, go left first. and after 3 meters go up, and then to the right?

    ( BTW, i dont mean a moveable space ship as in controlling it. I mean a space ship in the backround)
    thanks
    Share this post

  2. #2
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: How do I make something I created move in multiple direc

    Hi

    moving an object is fairly simple, you have 3 inputs to your OPE X/Y/Z these values need updating with new values each tick based on some timed sequence.

    one way you can do the movement is to set the OPE to local movement and feed it curved data sources, these data sources will need to be added together, i'll explain why further on.
    timings can be achieved with sequences of state enables and delay filters.
    each axis will need an interval trigger that disables after a single tick that goes to a state event On that's targeting a curved data source set up for that particular movement, if there is a delay to the start of the movement on this axis use the interval triggers own start delay tick (the top option), after the state even place a delay filter that is long enough to cover the time of the curved data source and also any extra timings for the next movement.

    so:-

    X Axis Interval Trigger (delay=0,disable after N ticks=1)--->State Event On (Target = CDS for 1st movement)--->Delay Filter(some delay+1 second)-->state event On(Target = CDS 2nd movement)--> delay filter(some delay+5seconds)--->and so on.

    X Axis CDS for 1st movement , start=0, end=2 (meters) time=1 second
    X Axis CDS for 2st movement , start=0, end=-2 (meters) time=5 second (end at -2 will make it go back to its start position)
    (each CDS has to have loop,invert second half and Enable unchecked)

    both/all X axis CDS values are passed into a N Input Operator set to Add this N Input Operator is then used as the OPEs X value.

    now do the same for the Y and if needed Z.

    adding the CDS values:-
    you to do this as each OPE axis can only receive data from one source, this just makes life a whole lot simpler than updating an individual CDS using set value events for start/end/duration variable data sources and also makes calculating the movement much simpler as the start value for each CDS is always 0 and the end is how many meters you wish to move it over said duration

    hope this helps, if you have any questions just holla.
    Share this post