Inside access

This topic contains 3 replies, has 2 voices, and was last updated by  Gwenel 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14460

    Gwenel
    Participant

    This got more lots more tricky than I thought it would, but how do you access x y z inside enemy?
    I need to do it both xyz all at once as a combined (Vec3?), and z alone (int).

     

    #14464

    DruggedBunny
    Participant

    You want somearray2[3].position.x

    Oh, wait, you also need to init the vector, so somearray2[3].position = New vector, follow by somearray2[3].positionx = whatever

    Or, in your loop…

    [/crayon]
    #14466

    Gwenel
    Participant

    Thanks Okay got everything working except the last part now. How to make it possible to send x y z all at once in some way (using vector or vec3 altogether instead of using the vector class,  both solutions would be interesting to hear about 🙂

    #14479

    Gwenel
    Participant

    Getting there…

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.