|
2 registered members (Quad, AndrewAMD),
1,007
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
question about programming tanks..
#305942
01/18/10 16:19
01/18/10 16:19
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
OP
Member
Joined: Nov 2008
Posts: 196
the wrong place
|
Hi! right now i am working on a tank, and i got 2 questions: my first question: how do i make my turret on the tank, not to collide with the tank? because my tank can't move, when i put the turret close to the tankbody, but if i take it away from the tankbody, then my tank, can move again. my second question: when i move my tank up a mountain or something else, then it moves like this: http://img121.imageshack.us/img121/5249/tankpic1.jpghow do i make it move up like this?: http://img64.imageshack.us/img64/2834/tankpic2.jpg thanks for the helps, i really need them! - Muhsin Kaymak
Last edited by Muhsin; 01/18/10 16:21.
Come and play my new browsergame - Valley Of Wolves: http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it! And be the most feared MafiaBoss in the World!!
|
|
|
Re: question about programming tanks..
[Re: JibbSmart]
#305961
01/18/10 17:36
01/18/10 17:36
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
OP
Member
Joined: Nov 2008
Posts: 196
the wrong place
|
can you please write an example for the first question, i can't make it work with the group thing?
thanks!
- Muhsin Kaymak
Come and play my new browsergame - Valley Of Wolves: http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it! And be the most feared MafiaBoss in the World!!
|
|
|
Re: question about programming tanks..
[Re: Muhsin]
#305969
01/18/10 18:26
01/18/10 18:26
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
OP
Member
Joined: Nov 2008
Posts: 196
the wrong place
|
okay i solved my first problem, thank you very much for the help! now i will try solve my second problem.
thanks!
- Muhsin Kaymak
Come and play my new browsergame - Valley Of Wolves: http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it! And be the most feared MafiaBoss in the World!!
|
|
|
Re: question about programming tanks..
[Re: Muhsin]
#306046
01/19/10 09:52
01/19/10 09:52
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Do a trace downwards from the tank, and set it's rotation to the target rotation using vec_to_angle. If you need any help on that, let me know, i can whip up a piece of code for you  regards,
|
|
|
Re: question about programming tanks..
[Re: Helghast]
#306099
01/19/10 18:36
01/19/10 18:36
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
OP
Member
Joined: Nov 2008
Posts: 196
the wrong place
|
that would be great if you could write me an example for that! thank you!
- Muhsin Kaymak
Come and play my new browsergame - Valley Of Wolves: http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it! And be the most feared MafiaBoss in the World!!
|
|
|
Re: question about programming tanks..
[Re: PigHunter]
#306238
01/20/10 16:43
01/20/10 16:43
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
OP
Member
Joined: Nov 2008
Posts: 196
the wrong place
|
OK, thank you it works!, but know i got 2 other questions:
when i stop in the middle of the "mountain", then the tank returns to its old "way" like in picture 1. how do i solve this problem?
and how do i make the tank's turret and cannon to act the same way as the tankbody?
thanks!
- Muhsin Kaymak
Come and play my new browsergame - Valley Of Wolves: http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it! And be the most feared MafiaBoss in the World!!
|
|
|
|