M4 Clision menu

Shout-Out

User Tag List

Thread: M4 Clision

Results 1 to 13 of 13
  1. #1
    lustikus12's Avatar Banned
    Reputation
    -2
    Join Date
    Jul 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    M4 Clision

    Hello how i can get Trees and Stones.... in a Linklist ?
    Last edited by lustikus12; 11-27-2009 at 02:26 PM.

    M4 Clision
  2. #2
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First

    flr
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  3. #3
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Second

    flr

  4. #4
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, thats just some basic vector algebra.

    Your orientation is the rotation to (1, 0) in radian (maybe its (0, 1), not 100% sure). Now calculate the angle between the vector (object - you) and (1, 0) (resp. (0, 1)) and from those calculate the angle between (object - you) and (you). then just decide a range where it has to be (like [pi/8, 7pi/8]) to be called "in front".

    /edit:
    ofc [pi/8, 7pi/8] is bullshit... [pi/8, 15pi/8] is way better.

    /edit2:
    holy shit, im to tired... ofc [pi/8, 15pi/8] is still bullshit, thats exactly the range where it should be to be not in front of you... so its basically if(¬({angle} ^ [pi/8, 15pi/8])) then its in front (where ^ means Intersection)
    Last edited by Cromon; 11-27-2009 at 02:35 PM.

  5. #5
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cromon View Post
    Well, thats just some basic vector algebra.

    Your orientation is the rotation to (1, 0) in radian (maybe its (0, 1), not 100% sure). Now calculate the angle between the vector (object - you) and (1, 0) (resp. (0, 1)) and from those calculate the angle between (object - you) and (you). then just decide a range where it has to be (like [pi/8, 7pi/8]) to be called "in front".

    /edit:
    ofc [pi/8, 7pi/8] is bullshit... [pi/8, 15pi/8] is way better.

    /edit2:
    holy shit, im to tired... ofc [pi/8, 15pi/8] is still bullshit, thats exactly the range where it should be to be not in front of you... so its basically if(¬({angle} ^ [pi/8, 15pi/8])) then its in front (where ^ means Intersection)
    Its pi/4 not pi/8. You're using the wrong coordinate system!

  6. #6
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think he's asking for the list that unknowned posted about a while back.

  7. #7
    lustikus12's Avatar Banned
    Reputation
    -2
    Join Date
    Jul 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes i'am looking for the Memoryadresses that show me what is the next tree or Stone or what ever... I want to hit them ....

  8. #8
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Its pi/4 not pi/8. You're using the wrong coordinate system!
    no, i ment pi/8 for 45°, maybe 60° would be better but greater then 60° would pretty much mean that either the model is not where we walk through or just some small distance before us. So in my opinion a cone with 60° fits it pretty well (depending on the size of the model.

    @lanman: Yeah, he edited the post, before he was asking for how to dtermine if a model is in front.

  9. #9
    x Royal x's Avatar Contributor
    Reputation
    100
    Join Date
    Jun 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But... pi/8 isn't 45° lol. Pi/4 is! With 2pi = 360°. and 1pi = 180°
    ]

  10. #10
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh ma dear, sure, 2pi / 2 isnt pi/2 . Such errors after studying math are a blame... Has to be cause of the intense kickboxtraining

    /Edit:
    *hopes no one sees that i accidentally posted some of my great new plan with a great new coordinatesystem where 45° are pi/8 whith wich it will be possible to verify the Riemann hypothesis*
    Last edited by Cromon; 11-27-2009 at 05:11 PM.

  11. #11
    lustikus12's Avatar Banned
    Reputation
    -2
    Join Date
    Jul 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can close here pls

  12. #12
    wraithZX's Avatar Active Member
    Reputation
    43
    Join Date
    May 2007
    Posts
    122
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lustikus12 View Post
    Yes i'am looking for the Memoryadresses that show me what is the next tree or Stone or what ever... I want to hit them ....
    I'm not sure about trees and stones, but hitting bushes is a valiant pursuit.

  13. #13
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lustikus12 View Post
    Yes i'am looking for the Memoryadresses that show me what is the next tree or Stone or what ever... I want to hit them ....
    Plant a tree !

    [YT]<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/CIaOedqu_ng&hl=de_DE&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CIaOedqu_ng&hl=de_DE&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>[/YT]
    Hey, it compiles! Ship it!

All times are GMT -5. The time now is 07:31 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search