lovee
Member
|
about "destruct" problem,help!
|
|
06-28-2010 10:47 PM |
|
Harry
Member
|
RE: about "destruct" problem,help!
I checked this on my computer and I had the same problem. I've also checked world from SDK but here everything is ok.
|
|
06-29-2010 08:53 AM |
|
Esenthel
Administrator
|
RE: about "destruct" problem,help!
maybe you need to increase the threshold for the joints while creating them
|
|
06-29-2010 09:00 AM |
|
ID0
Member
|
RE: about "destruct" problem,help!
Nice dog) (look like pc mouse )
|
|
06-29-2010 10:07 AM |
|
lovee
Member
|
RE: about "destruct" problem,help!
hi, friend, please tips further
how to understand "increase the threshold for the joints while creating them"
1. in model software (like 3ds max), adjust layout model wireframe?
2. in Mesh Editor, don't use "Create from Mesh(as Mesh)", and use "Add Box"?
thank you very much
/***************************************************************************************/
hi, dog only my AO lightmap exercise be from a book
|
|
06-29-2010 06:09 PM |
|
Esenthel
Administrator
|
RE: about "destruct" problem,help!
hello,
please take a look deeper into Game::Destructible source codes, at the top of the CPP file you have joint creation.
Perhaps you could try increasing the joint breaking values, to make them stronger.
|
|
06-29-2010 07:33 PM |
|
lovee
Member
|
RE: about "destruct" problem,help!
thank you very much!
|
|
06-30-2010 04:18 PM |
|
Harry
Member
|
RE: about "destruct" problem,help!
(06-29-2010 07:33 PM)Esenthel Wrote: Perhaps you could try increasing the joint breaking values, to make them stronger.
How can I do this? Is it possible for non-commercial users?
I tried with this:
Code:
void Destructible::create(Game::ObjParams &obj)
{
REPA(joints)joints[i].joint.breakable(20,20);
__super::create(obj); // default create
}
But this code don't work.
(This post was last modified: 12-25-2010 04:51 PM by Harry.)
|
|
12-25-2010 02:35 PM |
|
Esenthel
Administrator
|
RE: about "destruct" problem,help!
Hi, the joints are created sometime later.
Currently the easiest way would be to access the sources.
|
|
12-25-2010 03:39 PM |
|
Driklyn
Member
|
RE: about "destruct" problem,help!
(12-25-2010 02:35 PM)Harry Wrote: (06-29-2010 07:33 PM)Esenthel Wrote: Perhaps you could try increasing the joint breaking values, to make them stronger.
How can I do this? Is it possible for non-commercial users?
I tried with this:
Code:
void Destructible::create(Game::ObjParams &obj)
{
REPA(joints)joints[i].joint.breakable(20,20);
__super::create(obj); // default create
}
But this code don't work.
What I did was set the joints to static on creation and then destroy them on impact.
Code:
void Destructible::create(Game::ObjParams &obj)
{
__super::create(obj); // default create
toStatic();
}
...
if (collidedWith) destructibleItem->toPieces(); // example, call this where needed
|
|
12-25-2010 09:37 PM |
|