Announcement

Collapse
No announcement yet.

How do i use a transfrom with 2 location areas

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do i use a transfrom with 2 location areas

    Can i have 2 location areas (for example Area 1 with x,y,z: between 100 and 50 and Area2 with x,y,z between -50 and -100) in one transform? and is so, how?

    #2
    Not sure if i'm following what you are asking.

    you might not be understanding how a transform actually works

    A Transform contains 1 of each of the following:

    Location(Vector) - Represent a single point in which the actor is located
    Rotation(Rotator) - Represents a single orientation in which the actor is rotated
    Scale(Vector) - Represents a single size the actor is scaled to.

    There is no range represented in a transform since an actor cannot be multiple places, multiple orientation, or multiple sizes at once.


    Comment


      #3
      But you can always use a clamp to keep it in a range. The clamp make sure that the value has a min and Max value.

      I'm not sure if there is a clamp for vector but if you break the transform then break the location and clamp all the float. You'll be able to make a range for your location with the clamp float, but check if there is a clamp vector.
      Checkout Project "TwinBlaster" my current game in progress.
      [FREE] - 2D ROPE! Find out more here!
      Forgive my username... It's an old game name and wrote it down as a habit.

      Comment


        #4
        Originally posted by beanswaggle View Post
        Not sure if i'm following what you are asking.

        you might not be understanding how a transform actually works

        A Transform contains 1 of each of the following:

        Location(Vector) - Represent a single point in which the actor is located
        Rotation(Rotator) - Represents a single orientation in which the actor is rotated
        Scale(Vector) - Represents a single size the actor is scaled to.

        There is no range represented in a transform since an actor cannot be multiple places, multiple orientation, or multiple sizes at once.

        yea, i just wasn't sure, thanks for clarifying

        Comment


          #5
          Originally posted by SkeetonYu View Post
          But you can always use a clamp to keep it in a range. The clamp make sure that the value has a min and Max value.

          I'm not sure if there is a clamp for vector but if you break the transform then break the location and clamp all the float. You'll be able to make a range for your location with the clamp float, but check if there is a clamp vector.
          i was trying to get 2 ranges, not just 1. i wanted stuff to be spawned in the righ and left of an object, but not the middle. So i just wanted to know whether 2 ranges of random numbers are possible. i ended up having two different spawn nodes for each range

          Comment

          Working...
          X