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.

Newcomers DBPro Corner / How do i do a swipe move with a sword?

Author
Message
Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 18th Apr 2006 22:54
Hey
I have just checked out this code snippet and added a litle bit on.

I am tryign to get the sword to just swipe forwards instead of all that moving about when you hold in left mouseclick. Though im not sure how to do this, any help would be great

The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 19th Apr 2006 05:47
rotate limb instead, alot easier
Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 25th Apr 2006 20:27
Any code would help

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Apr 2006 23:22
Don't know if this is of any use. Feel free to disect it and use any part you want...

Attached zip: 144K

TDK_Man

Attachments

Login to view attachments
Digital Dragon
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 26th Apr 2006 18:57
Hey thanks TDK but is there any way to limit how much it turns because like this it looks like your going to kill yourself

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Apr 2006 23:38
Not looked at that, but it should be just a case of putting a check on the angle you rotate the invisible sphere pivot object that the sword's handle is connected to.

Along the lines of 'if angle < x then angle = x'.

If you can't kludge it, let me know and I'll take a look.

TDK_Man

Login to post a reply

Server time is: 2024-11-26 21:41:01
Your offset time is: 2024-11-26 21:41:01