- Joined
- Jun 12, 2016
- Messages
- 11
(Before I jump into this issue, let me talk to some my Personality Issue to you who read this thread.
Unfortunately, I'm Non-English person and my English grammar looks like may be terrible. So please excuse my ridiculously sentence.)
Hi.
As you can see I genuinely using 'Slopes' and 'Smoothies' without any kind of 'Cliffs' when I shape my terrains and this method has, in my mind, a more than better way when I make some realistic terrains.
But a main problem is when The Ground Units stand on the picture like that, He CAN see a uphill and downhill at the same time.
I wanna make that The Ground Units have a same visions(sights, or offsets etc.) when they facing the real Cliffs.
So, have been thinking about many ways for solve this problem I chose to input an Advanced Offset Library in a map with my custom math like the other libraries and AOL is kinda like this:
- If ∠CAB has more than 60°, The Ground Units which are standing on the point of A cannot see any types of Units on the point of C.
For now I'm trying many way to make this system but it keeps to showing some error message.
Which part has need to change?
*I'm sorry to you guys from this long-pointless massive thread. =[ and thank you to read this.
Unfortunately, I'm Non-English person and my English grammar looks like may be terrible. So please excuse my ridiculously sentence.)
Hi.
As you can see I genuinely using 'Slopes' and 'Smoothies' without any kind of 'Cliffs' when I shape my terrains and this method has, in my mind, a more than better way when I make some realistic terrains.
But a main problem is when The Ground Units stand on the picture like that, He CAN see a uphill and downhill at the same time.
I wanna make that The Ground Units have a same visions(sights, or offsets etc.) when they facing the real Cliffs.
So, have been thinking about many ways for solve this problem I chose to input an Advanced Offset Library in a map with my custom math like the other libraries and AOL is kinda like this:
- If ∠CAB has more than 60°, The Ground Units which are standing on the point of A cannot see any types of Units on the point of C.
For now I'm trying many way to make this system but it keeps to showing some error message.
Which part has need to change?
JASS:
struct math
public real x1
public real y1
public real x2
public real y2
public static method create takes nothing returns math
local math this = math.allocate()
set this.x1 = 0.
set this.y1 = 0.
set this.x2 = 0.
set this.y2 = 0.
return this
endmethod
public method angle takes nothing returns math
return bj_RADTODEG*Atan2(this.y2-this.y1, this.x2-this.x1)
endmethod
endstruct
*I'm sorry to you guys from this long-pointless massive thread. =[ and thank you to read this.
Last edited: