Results 1 to 1 of 1

Math Help - Have the concept - but need help to express it mathematically (object avoidance)

  1. #1
    Newbie
    Joined
    Jan 2012
    Posts
    1

    Have the concept - but need help to express it mathematically (object avoidance)

    Hey there! First off I'm not sure if this is the right forum for this post, it may involve a few disciplines, either way it is beyond me even to know where it belongs, this forum is my best guess other than the "other" forum.


    I'm trying to avoid the red object for my 3d space sim/rts project (visit http://www.VoidDestroyer.com if you are interested)

    Please look at the attached illustration, I hope it mostly explains the problem.

    I cast a ray (a line that tells me what's is in its path - my my game's physics engine) from the starting position to the go to position.

    My physics engine tells me the hit point and the normal of the triangle intersected.

    My goal is to travel along the normal at the hit point (away from the obstacle), for about a quater of the obstacle's size, then travel perpendicular to the normal for about a quater of the obstacle's size (this is the green line aproximation from the start position), then re-check the ray again.


    Problem is: I have no idea how to express this mathemtaically (actual formulas, math involved).

    Essencially:
    How do I use the normal and the hit position to get a position away from the obstacle in 3D?
    When I have that position: How do I use the obstacle's center position, the hit position and size (or whatever else) to determine where to go from there?

    I hope I'm not using some terms incorrectly or a faulty method... any help is greatly appreciated.

    thank you
    Attached Thumbnails Attached Thumbnails Have the concept - but need help to express it mathematically (object avoidance)-illustration.jpg  
    Last edited by chaosavy; January 17th 2012 at 07:49 AM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. How do I represent this mathematically?
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: July 14th 2011, 02:03 AM
  2. mathematically similar
    Posted in the Algebra Forum
    Replies: 0
    Last Post: May 13th 2010, 11:22 AM
  3. Prove Mathematically That...
    Posted in the Algebra Forum
    Replies: 4
    Last Post: April 28th 2010, 07:11 PM
  4. Replies: 6
    Last Post: May 28th 2009, 07:38 AM
  5. Thinking Mathematically Blitzer 4 ed.
    Posted in the Discrete Math Forum
    Replies: 0
    Last Post: December 6th 2007, 10:42 AM

Search Tags


/mathhelpforum @mathhelpforum