Seba
Member
|
RE: Bullets Collision
How i can interpreted density and force in game?
If i set 100 density it will be 100 kg or how?
In force when i set Vec(30,0,0) it will be 30 N in symulation?
I need it to set correct behaviours of items.
|
|
12-05-2009 09:18 PM |
|
Seba
Member
|
RE: Bullets Collision
Can i set weight like that:
Quote:if(Game::Param *p=obj.findParam("weight"))actor.mass(p->asFlt());
|
|
12-06-2009 01:43 PM |
|
Esenthel
Administrator
|
RE: Bullets Collision
yes
|
|
12-06-2009 09:20 PM |
|
GeekAntic
Member
|
RE: Bullets Collision
it would be nice if u could post the code solved the collision prob
|
|
12-10-2009 08:41 PM |
|
Seba
Member
|
RE: Bullets Collision
You have code in Bloody Massacre. My code without extra part looks like that :
In BULLET::set add:
Quote:T.dir = dir;
In struct BULLET add:
Quote:Vec dir;
BULLET::update():
http://www.wklej.org/id/231332/
|
|
12-10-2009 09:01 PM |
|
GeekAntic
Member
|
|
12-10-2009 09:25 PM |
|
Dampire
Member
|
RE: Bullets Collision
How I can register bullet collision not on ctrl.actor, but on ragdoll actors? Maybe someone has already solved this problem. If you understand what I mean...
(This post was last modified: 08-04-2010 04:25 PM by Dampire.)
|
|
08-04-2010 04:24 PM |
|
Dampire
Member
|
RE: Bullets Collision
How I can get name of ragdoll's actor, when I use ray-test?
(This post was last modified: 08-05-2010 07:00 AM by Dampire.)
|
|
08-05-2010 06:59 AM |
|
Esenthel
Administrator
|
RE: Bullets Collision
ragdolls and actors dont have a name
you can assign custom Actor::user pointer, maybe that will help you
|
|
08-05-2010 09:44 AM |
|