Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
collision with certain part of entity #378512
07/24/11 14:34
07/24/11 14:34
Joined: Apr 2011
Posts: 40
germany
W
Wollez Offline OP
Newbie
Wollez  Offline OP
Newbie
W

Joined: Apr 2011
Posts: 40
germany
Hi,
How can I tell which part of my player-model has collided with another Entity? I'm trying to program a small game were you can walk around and hit enemys with your sword. Of course they only should get hurt if they get hit by the sword and not if they get hit by my little finger or sth. How can I do that?
Thx in advantage
Valle

Re: collision with certain part of entity [Re: Wollez] #378519
07/24/11 15:22
07/24/11 15:22
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
Make them two separate models.


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: collision with certain part of entity [Re: Carlos3DGS] #378535
07/24/11 16:12
07/24/11 16:12
Joined: Apr 2011
Posts: 40
germany
W
Wollez Offline OP
Newbie
Wollez  Offline OP
Newbie
W

Joined: Apr 2011
Posts: 40
germany
thx for the quick answer
but how do I get the sword to move smoothly with the soldiers hand?
And can collision be detected with ent_animate ?

Re: collision with certain part of entity [Re: Wollez] #378538
07/24/11 16:14
07/24/11 16:14
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
And can collision be detected with ent_animate ?

No.
You don't have to split your model into two models, you can simply c_trace from the bottom to the tip of your sword (get the positions with vec_for_vertex).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: collision with certain part of entity [Re: Wollez] #378539
07/24/11 16:17
07/24/11 16:17
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
You'll have to attach swords model to player's one. Via vertexes or via bones.
Please search AUM's for an example, I'm sure you'll find one, here is the link:
gslools.de
You'll find how to make collusions with "c_trace" for the sword, as Superku said.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: collision with certain part of entity [Re: 3run] #378608
07/25/11 01:47
07/25/11 01:47
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
If your sword will never get changed(you only use one sword all the time) then using a character with a sword model will do, that will save you some work.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1