About Store Forum Documentation Contact



Post Reply 
about "destruct" problem,help!
Author Message
lovee Offline
Member

Post: #1
about "destruct" problem,help!
   

   

   

please help me, thank you very much
06-28-2010 10:47 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #2
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #3
RE: about "destruct" problem,help!
maybe you need to increase the threshold for the joints while creating them
06-29-2010 09:00 AM
Find all posts by this user Quote this message in a reply
ID0 Offline
Member

Post: #4
RE: about "destruct" problem,help!
Nice dog) (look like pc mousesmile)
06-29-2010 10:07 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: about "destruct" problem,help!
(06-29-2010 10:07 AM)ID0 Wrote:  Nice dog) (look like pc mousesmile)

lol xD

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 06-29-2010 02:11 PM by Dynad.)
06-29-2010 02:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #6
RE: about "destruct" problem,help!
(06-29-2010 10:07 AM)ID0 Wrote:  Nice dog) (look like pc mousesmile)

really? thought it looked like something out of hl2/portal type of thingie
06-29-2010 03:51 PM
Find all posts by this user Quote this message in a reply
lovee Offline
Member

Post: #7
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 smile

/********************************************************************************​*******/

hi, dog only my AO lightmap exercise be from a book smile
06-29-2010 06:09 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #8
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
Find all posts by this user Quote this message in a reply
lovee Offline
Member

Post: #9
RE: about "destruct" problem,help!
thank you very much!
06-30-2010 04:18 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #10
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #11
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
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #12
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
Find all posts by this user Quote this message in a reply
Post Reply