Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / How can I make a gun rotation like in Iced

Author
Message
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 6th Jun 2005 21:19
I want a gun rotation like in Iced
but I cannot do something like that
can anybody help me?

Please make a scoure
This is my scoure
maybe you can add it.



[href][/href]
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Jun 2005 15:43
Do you mean rotate an object so you can see it or a gun with a rotating part on it?

It would help if you upload the gun itself to see the scale you need.
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 7th Jun 2005 21:19
No I mean if yo move the mouse the weapon isnt glued at the cam.
it take some time to come to the standard position , the middle of the cam.

[href][/href]
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 8th Jun 2005 01:53
I think you use "lock object on number"

The happenings of tommorow are behind us now
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 8th Jun 2005 05:15 Edited at: 8th Jun 2005 05:16
no then the gun looks bad


I WANT A REALISTIC MOVEMENT OF THE GUN
LOCK OBJECT ON IS TOO UNREALISTIC
I WANT A "SMOOTH" LOCK like in ICED
if you move with the cam the two guns arent locked
the move slow from right to left etc.. how can I do something like that?????

:,,(

[href][/href]
DBAlex
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 8th Jun 2005 05:16
Just use the code from Iced... ?


AMD 64 3000 + 512mb RAM + 80GB HD + Radeon 9600se 128mb
http://www.dbastudios.cjb.net
Metel Artz
20
Years of Service
User Offline
Joined: 13th Apr 2005
Location: Vermont USA
Posted: 8th Jun 2005 10:50
lol that is what people usually do they find a problem look in opther programs made take how they did a certain thing and smack it into there game (ouch ) GAME ABUSE!

"Fade" To Be Released mid-2006
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 9th Jun 2005 02:59
I dont want to steal it from Iced I want
create something myself
but I dont now how. Thats why I open a forum.

[href][/href]
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 9th Jun 2005 03:08 Edited at: 9th Jun 2005 22:07
When you make a model, often it has more than one mesh, in DB these are refered to as limbs, and each can have it's own pivot point. For example, a tank might be made from a base, and a seperate turret. If you set the turret mesh so that it's pivot point is in it's middle, then just rotating that limb in DB will turn it in relation to the object it is in. So no matter what angle the tank is facing, turning the turret left and right with the Y axis will always be sensible.

You need to know the limb number of the mesh that you want to rotate, like it might just be limb 2 - so you'd rotate limb 2 : ROTATE LIMB Obj,2,0,angle,0

So by reducing angle as well, like bringing it back to 0, that would make the turret centre itself with the tank again.

EDIT: Doh! - that should be ROTATE LIMB, not ROTATE OBJECT!


Van-B

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 9th Jun 2005 04:43
Ok this must help

[href][/href]
Diablo 98188
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: In front of my computer.
Posted: 18th Jun 2005 04:19
Quote: " I dont want to steal it from Iced I want
create something myself
but I dont now how. Thats why I open a forum."


Ok, i dont get it. You say you wanted to make it yourself, yet you go on the forum and ask someone to make it for you??? They gave you the source code for a resaon, tto learn frooom it. So go and looka t how they did it and modify it for your game......

"May the fires of the underworld burn you"
- ME ^_^
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 18th Jun 2005 13:07
Use curvevalue(), Jack.

[b]eGeneric Works : Dark Basic Developer Website

Login to post a reply

Server time is: 2025-05-22 19:43:04
Your offset time is: 2025-05-22 19:43:04