Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Dec 2011
    Location
    UK, London
    Posts
    159

    Question Volume Co-ordinate Locations

    If I Have a volume in the level, how can I get the location of its bounds, like The location of the Min X point, Max X point and the same for Y and Z??


    I am unable to find a property within volume that has the locations for these values!!

  2. #2
    MSgt. Shooter Person
    Join Date
    Sep 2009
    Location
    Arlington, TX
    Posts
    372

    Default

    You can select vertices or edges in geometry mode. You can also get values by selecting the brush, copy, paste to text editor.

  3. #3
    MSgt. Shooter Person
    Join Date
    Dec 2011
    Location
    UK, London
    Posts
    159

    Default

    thats very interesting n nice

    how can i let unreal script know these values?? runtime ofcourse...

  4. #4

    Default

    Volumes are not necessarily axis-aligned, so there's no point in exposing such values. You should instead mark the volume's location with an actor and if something is near that location you can perform a specific Encompasses() check.
    Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives

    <elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
    <TNSe> nono
    <TNSe> its always funny to find code a week later you dont even remember writing
    <Pfhoenix> what's worse is when you have a Star Wars moment
    <Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
    Note that your questions via PMs will be ignored if they actually belong in the forum.

  5. #5
    MSgt. Shooter Person
    Join Date
    Sep 2009
    Location
    Arlington, TX
    Posts
    372

    Default

    Quote Originally Posted by srinath49 View Post
    thats very interesting n nice

    how can i let unreal script know these values?? runtime ofcourse...
    Well if you know them you can enter them arbitrarily. Otherwise look at Engine.Brush http://www.codekisk.com/unreal/ut3/scriptref/Source_engine/brushcomponent.html#11

    I believe you will haveto get the brush component of you volume(s), access the BrushAggGeom, iterate through the struct(s) and perform any needed math.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.