Staredit Network > Forums > SC2 Assistance > Topic: Detecting unit moving through walls
Detecting unit moving through walls
Dec 23 2013, 1:13 pm
By: Leeroy_Jenkins  

Dec 23 2013, 1:13 pm Leeroy_Jenkins Post #1



Hello, I am working on a Starcraft II hockey map. In this map, I have a trigger physics engine, which moves units around. The problem I am having is that the hockey puck moves very fast. It is being moved by the unitsetposition trigger, so sometimes it skips over areas. This is a problem for my map, especially around the goal area, where I want collision with the goal and goal posts to be very accurate. Any ideas?



None.

Dec 23 2013, 2:14 pm Roy Post #2

An artist's depiction of an Extended Unit Death

If these are all fixed collision points, why not just make some regions and handle the event that the puck enters one of them?

What do you mean by "skips over areas"? If you're moving it a significant distance, you should decrease the distance and shorten the interval. I find that 0.05 seconds works pretty well for sliding effects.




Dec 24 2013, 1:38 am Leeroy_Jenkins Post #3



The interval is 0.0 seconds, and the projectile is moving fast, and being moved by the unitsetposition trigger. So, sometimes, it is moved over an area completely, including regions. So, the interval is at its minimum, and I would not like to decrease the distance (AKA speed) if I could.

Edit:

I found a website that might be useful, http://www.gamasutra.com/view/feature/131424/pool_hall_lessons_fast_accurate_.php?page=2. This looks like what I probably need for this.

Post has been edited 1 time(s), last time on Dec 24 2013, 4:54 am by Leeroy_Jenkins.



None.

Mar 2 2014, 8:30 am payne Post #4

:payne:

Btw, Leeroy, I saw some players walk through the arena's boundary and start skating beyond them. All they seemed to have to do was keep walking straight into the wall until they get to the other side.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:44 am]
CoCo( -- anyone willing to help fix a few triggers on a new "impossible" map? Please
[06:52 pm]
lil-Inferno -- UndeadStar
UndeadStar shouted: https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
:doubt:
[03:18 pm]
UndeadStar -- Spoiler: there are no medics in that video
[03:18 pm]
UndeadStar -- this made me remember a line in the Broodwar manual static about medics "lengthening the expected battlefield life expectancy to over nine seconds"
[2026-10-28. : 6:50 am]
UndeadStar -- https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
[2026-10-28. : 2:28 am]
Symmetry -- ball cleavage
[2026-10-28. : 12:38 am]
Wing Zero -- Ya cleavage
[2026-10-28. : 12:02 am]
NudeRaider -- and you can guess what the small thing in the middle is :awesome:
[2026-10-28. : 12:01 am]
NudeRaider -- Fartys balls
[2026-10-27. : 11:28 pm]
Ultraviolet -- ( :farty: Y :farty: )
Please log in to shout.


Members Online: JODENG